diff --git a/.travis.yml b/.travis.yml index 877610a5547c..e69bd5b6eeef 100644 --- a/.travis.yml +++ b/.travis.yml @@ -51,9 +51,8 @@ matrix: services: - mongodb script: - - npm run postinstall -- --scope "@loopback/test-repository-mongodb" --include-dependencies - - npm run build -- --scope "@loopback/test-repository-mongodb" --include-dependencies - - cd acceptance/repository-mongodb && npm run mocha + - lerna bootstrap --scope "@loopback/test-repository-mongodb" --include-dependencies + - cd acceptance/repository-mongodb && npm test - node_js: "12" os: linux env: @@ -68,9 +67,8 @@ matrix: - mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'test'@'localhost' WITH GRANT OPTION;FLUSH PRIVILEGES;" - mysql -e "GRANT SUPER ON *.* TO 'test'@'localhost' IDENTIFIED BY 'test';FLUSH PRIVILEGES;" script: - - npm run postinstall -- --scope "@loopback/test-repository-mysql" --include-dependencies - - npm run build -- --scope "@loopback/test-repository-mysql" --include-dependencies - - cd acceptance/repository-mysql && npm run mocha + - lerna bootstrap --scope "@loopback/test-repository-mysql" --include-dependencies + - cd acceptance/repository-mysql && npm test - node_js: "12" os: linux env: @@ -79,18 +77,16 @@ matrix: services: - postgresql script: - - npm run postinstall -- --scope "@loopback/test-repository-postgresql" --include-dependencies - - npm run build -- --scope "@loopback/test-repository-postgresql" --include-dependencies + - lerna bootstrap --scope "@loopback/test-repository-postgresql" --include-dependencies - psql -U postgres -a -f acceptance/repository-postgresql/test/schema.sql - - cd acceptance/repository-postgresql && npm run mocha + - cd acceptance/repository-postgresql && npm test - node_js: "12" os: linux env: - TASK=test-repository-cloudant script: # set up docker image and create admin for cloudant. - - npm run postinstall -- --scope "@loopback/test-repository-cloudant" --include-dependencies - - npm run build -- --scope "@loopback/test-repository-cloudant" --include-dependencies + - lerna bootstrap --scope "@loopback/test-repository-cloudant" --include-dependencies - cd acceptance/repository-cloudant && sh setup.sh - npm test - node_js: "12" @@ -100,9 +96,8 @@ matrix: services: - docker script: - - npm run postinstall -- --scope "@loopback/test-extension-logging-fluentd" --include-dependencies - - npm run build -- --scope "@loopback/test-extension-logging-fluentd" --include-dependencies - - cd acceptance/extension-logging-fluentd && npm run mocha + - lerna bootstrap --scope "@loopback/test-extension-logging-fluentd" --include-dependencies + - cd acceptance/extension-logging-fluentd && npm test branches: only: diff --git a/acceptance/extension-logging-fluentd/package.json b/acceptance/extension-logging-fluentd/package.json index 4518908e7380..34ab1a58de68 100644 --- a/acceptance/extension-logging-fluentd/package.json +++ b/acceptance/extension-logging-fluentd/package.json @@ -8,7 +8,7 @@ }, "scripts": { "build": "lb-tsc", - "clean": "lb-clean loopback-test-extension-logging-fluentd*.tgz dist tsconfig.build.tsbuildinfo package", + "clean": "lb-clean loopback-test-extension-logging-fluentd*.tgz dist *.tsbuildinfo package", "pretest": "npm run build", "test": "npm run mocha", "mocha": "lb-mocha \"dist/__tests__/**/*.js\"", diff --git a/acceptance/repository-cloudant/package.json b/acceptance/repository-cloudant/package.json index 0711d38c5fa8..69c5ae9076cb 100644 --- a/acceptance/repository-cloudant/package.json +++ b/acceptance/repository-cloudant/package.json @@ -8,7 +8,7 @@ }, "scripts": { "build": "lb-tsc", - "clean": "lb-clean loopback-test-repository-cloudant*.tgz dist tsconfig.build.tsbuildinfo package", + "clean": "lb-clean loopback-test-repository-cloudant*.tgz dist *.tsbuildinfo package", "pretest": "npm run build", "test": "npm run mocha", "mocha": "lb-mocha \"dist/__tests__/**/*.js\"", diff --git a/acceptance/repository-mongodb/package.json b/acceptance/repository-mongodb/package.json index 013bac9cc7c4..cda1533e99e9 100644 --- a/acceptance/repository-mongodb/package.json +++ b/acceptance/repository-mongodb/package.json @@ -8,7 +8,7 @@ }, "scripts": { "build": "lb-tsc", - "clean": "lb-clean loopback-test-repository-mongodb*.tgz dist tsconfig.build.tsbuildinfo package", + "clean": "lb-clean loopback-test-repository-mongodb*.tgz dist *.tsbuildinfo package", "pretest": "npm run build", "test": "npm run mocha", "mocha": "lb-mocha \"dist/__tests__/**/*.js\"", diff --git a/acceptance/repository-mysql/package.json b/acceptance/repository-mysql/package.json index ee7138505d69..b9d369c725b3 100644 --- a/acceptance/repository-mysql/package.json +++ b/acceptance/repository-mysql/package.json @@ -8,7 +8,7 @@ }, "scripts": { "build": "lb-tsc", - "clean": "lb-clean loopback-test-repository-mysql*.tgz dist tsconfig.build.tsbuildinfo package", + "clean": "lb-clean loopback-test-repository-mysql*.tgz dist *.tsbuildinfo package", "pretest": "npm run build", "test": "npm run mocha", "mocha": "lb-mocha \"dist/__tests__/**/*.js\"", diff --git a/acceptance/repository-postgresql/package.json b/acceptance/repository-postgresql/package.json index 5a3cd0b0718c..2da2a368789f 100644 --- a/acceptance/repository-postgresql/package.json +++ b/acceptance/repository-postgresql/package.json @@ -8,7 +8,7 @@ }, "scripts": { "build": "lb-tsc", - "clean": "lb-clean loopback-test-repository-postgresql*.tgz dist tsconfig.build.tsbuildinfo package", + "clean": "lb-clean loopback-test-repository-postgresql*.tgz dist *.tsbuildinfo package", "pretest": "npm run build", "test": "npm run mocha", "mocha": "lb-mocha \"dist/__tests__/**/*.js\"", diff --git a/extensions/apiconnect/package.json b/extensions/apiconnect/package.json index 391b859e1ef3..fb61b3cdf3ba 100644 --- a/extensions/apiconnect/package.json +++ b/extensions/apiconnect/package.json @@ -9,7 +9,7 @@ "acceptance": "lb-mocha \"dist/__tests__/acceptance/**/*.js\"", "build:apidocs": "lb-apidocs", "build": "lb-tsc", - "clean": "lb-clean loopback-apiconnect*.tgz dist tsconfig.build.tsbuildinfo package", + "clean": "lb-clean loopback-apiconnect*.tgz dist *.tsbuildinfo package", "pretest": "npm run build", "test": "lb-mocha \"dist/__tests__/**/*.js\"", "unit": "lb-mocha \"dist/__tests__/unit/**/*.js\"", diff --git a/extensions/authentication-passport/package.json b/extensions/authentication-passport/package.json index 2c74b10fc0b8..283bb8180677 100644 --- a/extensions/authentication-passport/package.json +++ b/extensions/authentication-passport/package.json @@ -9,7 +9,7 @@ "acceptance": "lb-mocha \"dist/__tests__/acceptance/**/*.js\"", "build:apidocs": "lb-apidocs", "build": "lb-tsc", - "clean": "lb-clean loopback-authentication-passport*.tgz dist tsconfig.build.tsbuildinfo package", + "clean": "lb-clean loopback-authentication-passport*.tgz dist *.tsbuildinfo package", "pretest": "npm run build", "test": "lb-mocha \"dist/__tests__/**/*.js\"", "unit": "lb-mocha \"dist/__tests__/unit/**/*.js\"", diff --git a/extensions/context-explorer/package.json b/extensions/context-explorer/package.json index 6566c7de7fe5..bf3a70d91acc 100644 --- a/extensions/context-explorer/package.json +++ b/extensions/context-explorer/package.json @@ -7,7 +7,7 @@ }, "scripts": { "build": "lb-tsc", - "clean": "lb-clean loopback-explorer*.tgz dist tsconfig.build.tsbuildinfo package", + "clean": "lb-clean loopback-explorer*.tgz dist *.tsbuildinfo package", "pretest": "npm run build", "test": "lb-mocha \"dist/__tests__/**/*.js\"", "verify": "npm pack && tar xf loopback-context-explorer*.tgz && tree package && npm run clean" diff --git a/extensions/cron/package.json b/extensions/cron/package.json index d8a79a3f5803..a607b6195a6a 100644 --- a/extensions/cron/package.json +++ b/extensions/cron/package.json @@ -7,7 +7,7 @@ }, "scripts": { "build": "lb-tsc", - "clean": "lb-clean loopback-cron*.tgz dist tsconfig.build.tsbuildinfo package", + "clean": "lb-clean loopback-cron*.tgz dist *.tsbuildinfo package", "pretest": "npm run build", "test": "lb-mocha \"dist/__tests__/**/*.js\"", "verify": "npm pack && tar xf loopback-cron*.tgz && tree package && npm run clean" diff --git a/extensions/health/package.json b/extensions/health/package.json index 2e3bc3b90220..68ee121c336b 100644 --- a/extensions/health/package.json +++ b/extensions/health/package.json @@ -7,7 +7,7 @@ }, "scripts": { "build": "lb-tsc", - "clean": "lb-clean loopback-extension-health*.tgz dist tsconfig.build.tsbuildinfo package", + "clean": "lb-clean loopback-extension-health*.tgz dist *.tsbuildinfo package", "pretest": "npm run build", "test": "lb-mocha \"dist/__tests__/**/*.js\"", "verify": "npm pack && tar xf loopback-extension-health*.tgz && tree package && npm run clean", diff --git a/extensions/logging/package.json b/extensions/logging/package.json index 9fd77364cacf..73f29bf7bb9f 100644 --- a/extensions/logging/package.json +++ b/extensions/logging/package.json @@ -7,7 +7,7 @@ }, "scripts": { "build": "lb-tsc", - "clean": "lb-clean loopback-extension-logging*.tgz dist tsconfig.build.tsbuildinfo package", + "clean": "lb-clean loopback-extension-logging*.tgz dist *.tsbuildinfo package", "pretest": "npm run build", "test": "lb-mocha \"dist/__tests__/**/*.js\"", "verify": "npm pack && tar xf loopback-extension-logging*.tgz && tree package && npm run clean" diff --git a/extensions/metrics/package.json b/extensions/metrics/package.json index 19465ed667cb..ab973185bfba 100644 --- a/extensions/metrics/package.json +++ b/extensions/metrics/package.json @@ -7,7 +7,7 @@ }, "scripts": { "build": "lb-tsc", - "clean": "lb-clean loopback-extension-metrics*.tgz dist tsconfig.build.tsbuildinfo package", + "clean": "lb-clean loopback-extension-metrics*.tgz dist *.tsbuildinfo package", "pretest": "npm run build", "test": "lb-mocha \"dist/__tests__/**/*.js\"", "verify": "npm pack && tar xf loopback-extension-metrics*.tgz && tree package && npm run clean" diff --git a/package.json b/package.json index e075050c418f..ef8f221b950a 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,9 @@ "typescript": "~3.8.3" }, "scripts": { - "postinstall": "lerna bootstrap", + "bootstrap": "lerna bootstrap", + "postinstall": "npm run -s bootstrap && npm run -s update-ts-project-refs", + "update-ts-project-refs": "node bin/update-ts-project-refs.js -f", "update-packages": "npm run -s update-package-locks", "prerelease": "npm run build:full && npm run mocha && npm run lint", "release": "lerna version && lerna publish from-git --yes", @@ -54,7 +56,7 @@ "prettier:fix": "npm run prettier:cli -- --write", "clean": "lerna run clean && node packages/build/bin/run-clean \"packages/*/dist\" \"extensions/*/dist\" \"examples/*/dist\" \"benchmark/dist\"", "clean:lerna": "lerna clean", - "build": "node bin/run-lerna run build --sort", + "build": "node packages/build/bin/compile-package -b", "build:full": "npm ci --ignore-scripts && lerna bootstrap --ci && npm run clean && npm run build", "pretest": "npm run clean && npm run build", "test": "node packages/build/bin/run-nyc npm run mocha --scripts-prepend-node-path", diff --git a/packages/authentication/package.json b/packages/authentication/package.json index 47716d220f2d..ec5188c8997f 100644 --- a/packages/authentication/package.json +++ b/packages/authentication/package.json @@ -8,7 +8,7 @@ "scripts": { "acceptance": "lb-mocha \"dist/__tests__/acceptance/**/*.js\"", "build": "lb-tsc", - "clean": "lb-clean loopback-authentication*.tgz dist tsconfig.build.tsbuildinfo package", + "clean": "lb-clean loopback-authentication*.tgz dist *.tsbuildinfo package", "integration": "lb-mocha \"dist/__tests__/integration/**/*.js\"", "pretest": "npm run build", "test": "lb-mocha \"dist/__tests__/**/*.js\"", diff --git a/packages/boot/package.json b/packages/boot/package.json index 9574ce2fbafe..ce608e74a2d3 100644 --- a/packages/boot/package.json +++ b/packages/boot/package.json @@ -11,7 +11,7 @@ "scripts": { "acceptance": "lb-mocha \"dist/__tests__/acceptance/**/*.js\"", "build": "lb-tsc", - "clean": "lb-clean loopback-boot*.tgz dist tsconfig.build.tsbuildinfo package", + "clean": "lb-clean loopback-boot*.tgz dist *.tsbuildinfo package", "pretest": "npm run build", "integration": "lb-mocha \"dist/__tests__/integration/**/*.js\"", "test": "lb-mocha \"dist/__tests__/**/*.js\"", diff --git a/packages/booter-lb3app/package.json b/packages/booter-lb3app/package.json index e7397d77ca51..eefad019bfdb 100644 --- a/packages/booter-lb3app/package.json +++ b/packages/booter-lb3app/package.json @@ -7,7 +7,7 @@ }, "scripts": { "build": "lb-tsc", - "clean": "lb-clean loopback-booter-lb3app*.tgz dist tsconfig.build.tsbuildinfo package", + "clean": "lb-clean loopback-booter-lb3app*.tgz dist *.tsbuildinfo package", "pretest": "npm run build", "test": "lb-mocha \"dist/__tests__/**/*.js\"", "verify": "npm pack && tar xf loopback-booter-lb3app*.tgz && tree package && npm run clean" diff --git a/packages/context/package.json b/packages/context/package.json index 939b50d10fff..43fc904dc009 100644 --- a/packages/context/package.json +++ b/packages/context/package.json @@ -8,7 +8,7 @@ "scripts": { "acceptance": "lb-mocha \"dist/__tests__/acceptance/**/*.js\"", "build": "lb-tsc", - "clean": "lb-clean loopback-context*.tgz dist tsconfig.build.tsbuildinfo package", + "clean": "lb-clean loopback-context*.tgz dist *.tsbuildinfo package", "pretest": "npm run build", "test": "lb-mocha \"dist/__tests__/**/*.js\"", "unit": "lb-mocha \"dist/__tests__/unit/**/*.js\"", diff --git a/packages/core/package.json b/packages/core/package.json index 33c851e006ee..4f4cf3fc4333 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -8,7 +8,7 @@ "scripts": { "acceptance": "lb-mocha \"dist/__tests__/acceptance/**/*.js\"", "build": "lb-tsc", - "clean": "lb-clean loopback-core*.tgz dist tsconfig.build.tsbuildinfo package", + "clean": "lb-clean loopback-core*.tgz dist *.tsbuildinfo package", "pretest": "npm run build", "integration": "lb-mocha \"dist/__tests__/integration/**/*.js\"", "test": "lb-mocha \"dist/__tests__/**/*.js\"", diff --git a/packages/http-caching-proxy/package.json b/packages/http-caching-proxy/package.json index db2be0002526..5faca62b62fb 100644 --- a/packages/http-caching-proxy/package.json +++ b/packages/http-caching-proxy/package.json @@ -7,7 +7,7 @@ }, "scripts": { "build": "lb-tsc", - "clean": "lb-clean loopback-caching-proxy*.tgz dist tsconfig.build.tsbuildinfo package", + "clean": "lb-clean loopback-caching-proxy*.tgz dist *.tsbuildinfo package", "pretest": "npm run build", "test": "lb-mocha \"dist/__tests__/**/*.js\"", "verify": "npm pack && tar xf loopback-caching-proxy*.tgz && tree package && npm run clean" diff --git a/packages/http-server/package.json b/packages/http-server/package.json index b87bbd8c8b61..685ca6f81069 100644 --- a/packages/http-server/package.json +++ b/packages/http-server/package.json @@ -7,7 +7,7 @@ }, "scripts": { "build": "lb-tsc", - "clean": "lb-clean loopback-http-server*.tgz dist tsconfig.build.tsbuildinfo package", + "clean": "lb-clean loopback-http-server*.tgz dist *.tsbuildinfo package", "pretest": "npm run build", "test": "lb-mocha \"dist/__tests__/**/*.js\"", "verify": "npm pack && tar xf loopback-http-server*.tgz && tree package && npm run clean" diff --git a/packages/metadata/package.json b/packages/metadata/package.json index d21b545ff64e..c408ff3fa056 100644 --- a/packages/metadata/package.json +++ b/packages/metadata/package.json @@ -8,7 +8,7 @@ "scripts": { "acceptance": "lb-mocha \"dist/__tests__/acceptance/**/*.js\"", "build": "lb-tsc", - "clean": "lb-clean loopback-metadata*.tgz dist tsconfig.build.tsbuildinfo package", + "clean": "lb-clean loopback-metadata*.tgz dist *.tsbuildinfo package", "pretest": "npm run build", "test": "lb-mocha \"dist/__tests__/**/*.js\"", "unit": "lb-mocha \"dist/__tests__/unit/**/*.js\"", diff --git a/packages/model-api-builder/package.json b/packages/model-api-builder/package.json index 0616e195ce8f..b6daa15cf696 100644 --- a/packages/model-api-builder/package.json +++ b/packages/model-api-builder/package.json @@ -11,7 +11,7 @@ }, "scripts": { "build": "lb-tsc", - "clean": "lb-clean loopback-model-api-builder*.tgz dist tsconfig.build.tsbuildinfo package", + "clean": "lb-clean loopback-model-api-builder*.tgz dist *.tsbuildinfo package", "pretest": "npm run build", "test": "", "verify": "npm pack && tar xf loopback-model-api-builder*.tgz && tree package && npm run clean" diff --git a/packages/openapi-spec-builder/package.json b/packages/openapi-spec-builder/package.json index 4b94f102306b..d243756a0866 100644 --- a/packages/openapi-spec-builder/package.json +++ b/packages/openapi-spec-builder/package.json @@ -7,7 +7,7 @@ }, "scripts": { "build": "lb-tsc", - "clean": "lb-clean loopback-openapi-spec-builder*.tgz dist tsconfig.build.tsbuildinfo package", + "clean": "lb-clean loopback-openapi-spec-builder*.tgz dist *.tsbuildinfo package", "pretest": "npm run build", "test": "lb-mocha \"dist/__tests__/**/*.js\"", "verify": "npm pack && tar xf loopback-openapi-spec-builder*.tgz && tree package && npm run clean" diff --git a/packages/openapi-v3/package.json b/packages/openapi-v3/package.json index e121d8d1a0aa..2327ef317a97 100644 --- a/packages/openapi-v3/package.json +++ b/packages/openapi-v3/package.json @@ -29,7 +29,7 @@ }, "scripts": { "build": "lb-tsc", - "clean": "lb-clean loopback-openapi-v3*.tgz dist tsconfig.build.tsbuildinfo package", + "clean": "lb-clean loopback-openapi-v3*.tgz dist *.tsbuildinfo package", "integration": "lb-mocha \"dist/__tests__/integration/**/*.js\"", "pretest": "npm run build", "test": "lb-mocha \"dist/__tests__/**/*.js\"", diff --git a/packages/repository-json-schema/package.json b/packages/repository-json-schema/package.json index 7dfd2b38ab18..8ea102d4a263 100644 --- a/packages/repository-json-schema/package.json +++ b/packages/repository-json-schema/package.json @@ -7,7 +7,7 @@ }, "scripts": { "build": "lb-tsc", - "clean": "lb-clean loopback-json-schema*.tgz dist tsconfig.build.tsbuildinfo package", + "clean": "lb-clean loopback-json-schema*.tgz dist *.tsbuildinfo package", "pretest": "npm run build", "test": "lb-mocha \"dist/__tests__/**/*.js\"", "verify": "npm pack && tar xf loopback-json-schema*.tgz && tree package && npm run clean" diff --git a/packages/repository-tests/package.json b/packages/repository-tests/package.json index a9f9421f46f1..64962deb047f 100644 --- a/packages/repository-tests/package.json +++ b/packages/repository-tests/package.json @@ -11,7 +11,7 @@ }, "scripts": { "build": "lb-tsc", - "clean": "lb-clean loopback-repository-tests*.tgz dist tsconfig.build.tsbuildinfo package", + "clean": "lb-clean loopback-repository-tests*.tgz dist *.tsbuildinfo package", "pretest": "npm run build", "test": "lb-mocha \"dist/__tests__/**/*.js\"", "verify": "npm pack && tar xf loopback-repository*.tgz && tree package && npm run clean" diff --git a/packages/repository/package.json b/packages/repository/package.json index d1b25ee403eb..e4f792d639c3 100644 --- a/packages/repository/package.json +++ b/packages/repository/package.json @@ -9,7 +9,7 @@ "scripts": { "acceptance": "lb-mocha \"dist/__tests__/acceptance/**/*.js\"", "build": "lb-tsc", - "clean": "lb-clean loopback-repository*.tgz dist tsconfig.build.tsbuildinfo package", + "clean": "lb-clean loopback-repository*.tgz dist *.tsbuildinfo package", "pretest": "npm run build", "test": "lb-mocha \"dist/__tests__/**/*.js\"", "verify": "npm pack && tar xf loopback-repository*.tgz && tree package && npm run clean" diff --git a/packages/rest-crud/package.json b/packages/rest-crud/package.json index 410c6f908e2f..18696cae293f 100644 --- a/packages/rest-crud/package.json +++ b/packages/rest-crud/package.json @@ -11,7 +11,7 @@ }, "scripts": { "build": "lb-tsc", - "clean": "lb-clean loopback-rest-crud*.tgz dist tsconfig.build.tsbuildinfo package", + "clean": "lb-clean loopback-rest-crud*.tgz dist *.tsbuildinfo package", "pretest": "npm run build", "test": "lb-mocha \"dist/__tests__/**/*.js\"", "verify": "npm pack && tar xf loopback-rest-crud*.tgz && tree package && npm run clean" diff --git a/packages/rest-explorer/package.json b/packages/rest-explorer/package.json index 85a0475abea4..1343e79b8fe5 100644 --- a/packages/rest-explorer/package.json +++ b/packages/rest-explorer/package.json @@ -7,7 +7,7 @@ }, "scripts": { "build": "lb-tsc", - "clean": "lb-clean loopback-explorer*.tgz dist tsconfig.build.tsbuildinfo package", + "clean": "lb-clean loopback-explorer*.tgz dist *.tsbuildinfo package", "pretest": "npm run build", "test": "lb-mocha \"dist/__tests__/**/*.js\"", "verify": "npm pack && tar xf loopback-explorer*.tgz && tree package && npm run clean" diff --git a/packages/rest/package.json b/packages/rest/package.json index f200f164e6be..083fb2591459 100644 --- a/packages/rest/package.json +++ b/packages/rest/package.json @@ -8,7 +8,7 @@ "scripts": { "acceptance": "lb-mocha \"dist/__tests__/acceptance/**/*.js\"", "build": "lb-tsc", - "clean": "lb-clean loopback-rest*.tgz dist tsconfig.build.tsbuildinfo package", + "clean": "lb-clean loopback-rest*.tgz dist *.tsbuildinfo package", "pretest": "npm run build", "integration": "lb-mocha \"dist/__tests__/integration/**/*.js\"", "test": "lb-mocha \"dist/__tests__/**/*.js\"", diff --git a/packages/service-proxy/package.json b/packages/service-proxy/package.json index c6e3795f38f2..ae57c03e3ee6 100644 --- a/packages/service-proxy/package.json +++ b/packages/service-proxy/package.json @@ -9,7 +9,7 @@ "scripts": { "acceptance": "lb-mocha \"dist/__tests__/acceptance/**/*.js\"", "build": "lb-tsc", - "clean": "lb-clean loopback-service-proxy*.tgz dist tsconfig.build.tsbuildinfo package", + "clean": "lb-clean loopback-service-proxy*.tgz dist *.tsbuildinfo package", "integration": "lb-mocha \"dist/__tests__/integration/**/*.js\"", "pretest": "npm run build", "test": "lb-mocha \"dist/__tests__/**/*.js\"", diff --git a/packages/testlab/package.json b/packages/testlab/package.json index 766fc3898614..32b6e3b0ac62 100644 --- a/packages/testlab/package.json +++ b/packages/testlab/package.json @@ -7,7 +7,7 @@ }, "scripts": { "build": "lb-tsc", - "clean": "lb-clean loopback-testlab*.tgz dist tsconfig.build.tsbuildinfo package", + "clean": "lb-clean loopback-testlab*.tgz dist *.tsbuildinfo package", "pretest": "npm run build", "test": "lb-mocha \"dist/__tests__/**/*.js\"", "verify": "npm pack && tar xf loopback-testlab*.tgz && tree package && npm run clean" diff --git a/packages/tsdocs/fixtures/monorepo/package.json b/packages/tsdocs/fixtures/monorepo/package.json index 4cf145837ed9..1507e77d7052 100644 --- a/packages/tsdocs/fixtures/monorepo/package.json +++ b/packages/tsdocs/fixtures/monorepo/package.json @@ -3,9 +3,9 @@ "version": "1.0.0", "description": "Root", "scripts": { - "clean": "node run-lerna run clean", + "clean-fixtures": "node run-lerna run clean", "bootstrap": "node run-lerna bootstrap", - "build": "npm -s run bootstrap && npm -s run clean && node run-lerna run build" + "build": "npm -s run bootstrap && npm -s run clean-fixtures && node run-lerna run build" }, "author": "", "license": "MIT", diff --git a/packages/tsdocs/package.json b/packages/tsdocs/package.json index aa61ce1f3e0d..96d212c4244c 100644 --- a/packages/tsdocs/package.json +++ b/packages/tsdocs/package.json @@ -12,7 +12,7 @@ "document-apidocs": "api-documenter markdown -i ../../docs/apidocs/models -o ../../docs/site/apidocs", "update-apidocs": "node bin/update-apidocs", "build": "lb-tsc && npm run build --prefix fixtures/monorepo", - "clean": "lb-clean loopback-tsdocs*.tgz dist tsconfig.build.tsbuildinfo package", + "clean": "lb-clean loopback-tsdocs*.tgz dist *.tsbuildinfo package", "pretest": "npm run build", "test": "lb-mocha \"dist/__tests__/**/*.js\"", "verify": "npm pack && tar xf loopback-tsdocs*.tgz && tree package && npm run clean"