Skip to content

Commit

Permalink
temp: introduce patch-package to make unit tests run
Browse files Browse the repository at this point in the history
  • Loading branch information
xanf committed Dec 1, 2021
1 parent 396c9ae commit 5a0ec4c
Show file tree
Hide file tree
Showing 4 changed files with 13,079 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -65,7 +65,7 @@
"docs-dev": "cross-env NODE_ENV=docs nuxt dev -c docs/nuxt.config.js",
"docs-gen": "cross-env NODE_ENV=docs nuxt generate -c docs/nuxt.config.js",
"lint": "eslint --ext .js,.md,.vue ./",
"postinstall": "opencollective || exit 0",
"postinstall": "patch-package && opencollective || exit 0",
"prepare": "husky install",
"prettify": "prettier --write '**/*.{js,json,md,scss,ts,vue}'",
"release": "yarn run prettify && yarn run test && yarn run build && yarn run release-notes && standard-version",
Expand Down Expand Up @@ -138,6 +138,7 @@
"lodash": "^4.17.21",
"marked": "^2.0.3",
"nuxt": "^2.15.6",
"patch-package": "^6.4.7",
"postcss": "^8.2.15",
"postcss-cli": "^8.3.1",
"prettier": "1.14.3",
Expand Down
12 changes: 12 additions & 0 deletions patches/@vue+compat+3.2.22.patch
@@ -0,0 +1,12 @@
diff --git a/node_modules/@vue/compat/dist/vue.cjs.js b/node_modules/@vue/compat/dist/vue.cjs.js
index 5f98ecb..1b2bdd4 100644
--- a/node_modules/@vue/compat/dist/vue.cjs.js
+++ b/node_modules/@vue/compat/dist/vue.cjs.js
@@ -8414,6 +8414,7 @@ function convertLegacyFunctionalComponent(comp) {
};
Func.props = comp.props;
Func.displayName = comp.name;
+ Func.compatConfig = comp.compatConfig;
// v2 functional components do not inherit attrs
Func.inheritAttrs = false;
normalizedFunctionalComponentMap.set(comp, Func);

0 comments on commit 5a0ec4c

Please sign in to comment.