Skip to content

Commit

Permalink
fix(npm): clean script was missing folders
Browse files Browse the repository at this point in the history
1. No longer uses lerna and instead specifies glob patterns
2. Expands the deletion of generated Typescript code to all
packages where it's present not just the api-client package.
3. Deletes the two files that were meant to be deleted to
begin with, but since the clean script was not fully working
they were actually left undeleted until now.

Fixes #469

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
  • Loading branch information
petermetz committed Jan 14, 2021
1 parent bd09b8a commit 416b82e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 117 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"start:api-server": "node ./packages/cactus-cmd-api-server/dist/lib/main/typescript/cmd/cactus-api.js --config-file=.config.json",
"start:cockpit": "lerna run --scope '*/cactus-cockpit' --stream serve:proxy",
"start:example-supply-chain": "node ./examples/supply-chain-app/node_modules/.bin/cactus-example-supply-chain-backend",
"clean": "lerna exec --stream --ignore '*/*cockpit' -- del-cli dist/** && del-cli packages/cactus-api-client/src/main/typescript/generated/openapi/typescript-axios/*",
"clean": "del-cli \"./packages/cactus-*/{dist,.nyc_output,src/main/typescript/generated/openapi/typescript-axios/*}\"",
"lint": "lerna exec --stream --ignore '*/*cockpit' -- cross-env DEBUG= tslint --project tsconfig.json",
"tsc": "lerna run tsc",
"build": "npm-run-all build:dev build:prod",
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit 416b82e

Please sign in to comment.