Skip to content

Commit

Permalink
build(web-styles-migrations): copy package.json on build (#219)
Browse files Browse the repository at this point in the history
Copy package.json to dist and erase publishConfig.directory to be able to publish to npm.
  • Loading branch information
gfellerph authored Jul 27, 2022
1 parent 948f5a1 commit b77fdc6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/web-styles-migrations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"access": "public"
},
"scripts": {
"build": "tsc -p tsconfig.json && copyfiles -u 1 src/*/schema.json src/*/files/** src/migrations.json dist",
"build": "tsc -p tsconfig.json && copyfiles -u 1 src/*/schema.json src/*/files/** src/migrations.json dist && copyfiles package.json dist && json -I -f dist/package.json -e \"delete this.publishConfig.directory\"",
"todo:test": "npm run build && jasmine src/**/*_spec.js"
},
"dependencies": {
Expand All @@ -36,7 +36,8 @@
"@types/jasmine": "~3.10.0",
"@types/node": "^12.11.1",
"copyfiles": "^2.4.1",
"jasmine": "~4.0.0"
"jasmine": "~4.0.0",
"json": "^11.0.0"
},
"schematics": "./dist/migrations.json"
}
8 changes: 8 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b77fdc6

Please sign in to comment.