From b77fdc6bb1bbfa825775b20535308045a54b1160 Mon Sep 17 00:00:00 2001 From: Philipp Gfeller <1659006+gfellerph@users.noreply.github.com> Date: Wed, 27 Jul 2022 10:45:56 +0200 Subject: [PATCH] build(web-styles-migrations): copy package.json on build (#219) Copy package.json to dist and erase publishConfig.directory to be able to publish to npm. --- packages/web-styles-migrations/package.json | 5 +++-- pnpm-lock.yaml | 8 ++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/web-styles-migrations/package.json b/packages/web-styles-migrations/package.json index ed4db9735d..fa03c7b692 100644 --- a/packages/web-styles-migrations/package.json +++ b/packages/web-styles-migrations/package.json @@ -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": { @@ -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" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 18dd88ff7e..23fcde0ade 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -311,6 +311,7 @@ importers: '@types/node': ^12.11.1 copyfiles: ^2.4.1 jasmine: ~4.0.0 + json: ^11.0.0 rxjs: 6.5.3 typescript: ~4.6.2 zone.js: 0.11.4 @@ -327,6 +328,7 @@ importers: '@types/node': 12.20.55 copyfiles: 2.4.1 jasmine: 4.0.2 + json: 11.0.0 packages: @@ -14809,6 +14811,12 @@ packages: resolution: {integrity: sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==} dev: true + /json/11.0.0: + resolution: {integrity: sha512-N/ITv3Yw9Za8cGxuQqSqrq6RHnlaHWZkAFavcfpH/R52522c26EbihMxnY7A1chxfXJ4d+cEFIsyTgfi9GihrA==} + engines: {node: '>=0.10.0'} + hasBin: true + dev: true + /json5/1.0.1: resolution: {integrity: sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==} hasBin: true