Skip to content

Commit d23c4e3

Browse files
authored
Merge pull request #2135 from db-ui/2134-refactorcomponents-assets-are-missing
feat(components): ensure that the assets are packaged as well
2 parents 8eb6eea + 750dba6 commit d23c4e3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/components/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,20 @@
2727
"compile:angular": "mitosis build -c mitosis-angular.config.js && node -e \"require('./scripts/post-build/angular.js')(true)\" && npm run build-components:directives && cpr ../../output/tmp/angular/src ../../output/angular/src -o",
2828
"compile:react": "mitosis build -c mitosis-react.config.js && node -e \"require('./scripts/post-build/react.js')(true)\" && cpr ../../output/tmp/react/src ../../output/react/src -o",
2929
"compile:vue": "mitosis build -c mitosis-vue.config.js && node -e \"require('./scripts/post-build/vue.js')(true)\" && cpr ../../output/tmp/vue/vue3/src ../../output/vue/vue3/src -o",
30+
"copy-assets": "cpr ../foundations/assets build/assets -o",
3031
"copy-output": "npm-run-all copy:*",
3132
"copy:outputs": "cpr build ../../build-outputs/components/build -o",
3233
"copy:package.json": "cpr package.json ../../build-outputs/components/package.json -o",
3334
"copy:readme": "cpr README.md ../../build-outputs/components/README.md -o",
3435
"dev:angular": "nodemon --watch src --watch overrides -e tsx,ts -x \"npm run compile:angular\"",
35-
"dev:html": "cpr ../foundations/assets build/assets -o && npm run build-assets && npm run build-style:01_sass && vite --open",
36+
"dev:html": "npm run copy-assets && npm run build-assets && npm run build-style:01_sass && vite --open",
3637
"dev:react": "nodemon --watch src --watch overrides -e tsx,ts -x \"npm run compile:react\"",
3738
"dev:scss": "npm run build-style:01_sass -- --watch",
3839
"dev:vue": "nodemon --watch src --watch overrides -e tsx,ts -x \"npm run compile:vue\"",
3940
"generate:component": "hygen mitosis new",
4041
"generate:docs": "hygen update-docs new",
4142
"generate:icon-types": "node scripts/generate-icon-types.js",
43+
"prepack": "npm run copy-assets",
4244
"start": "nodemon --watch src --watch scripts --watch overrides -e js,tsx,ts,scss,json -x \"npm run build\""
4345
},
4446
"dependencies": {

0 commit comments

Comments
 (0)