Skip to content

Commit 762571f

Browse files
authored
fix: Ensure top level commands work correctly (#105)
1 parent 6c05dee commit 762571f

File tree

8 files changed

+10
-5
lines changed

8 files changed

+10
-5
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
],
1212
"private": true,
1313
"scripts": {
14-
"clean": "npx tsc --build --clean",
15-
"build": "npx tsc --build",
14+
"clean": "yarn workspaces foreach -pt run clean",
15+
"build": "yarn workspaces foreach -pt run build",
1616
"//": "When using build:doc you need to specify the workspace. 'yarn run build:doc packages/shared/common' for example.",
1717
"build:doc": "./scripts/build-doc.sh $1",
1818
"lint": "npx eslint . --ext .ts",
1919
"lint:fix": "yarn run lint -- --fix",
20-
"test": "npx jest",
20+
"test": "echo Please run tests for individual packages.",
2121
"coverage": "npm run test -- --coverage",
2222
"contract-test-service": "npm --prefix contract-tests install && npm --prefix contract-tests start",
2323
"contract-test-harness": "curl -s https://raw.githubusercontent.com/launchdarkly/sdk-test-harness/master/downloader/run.sh \\ | VERSION=v2 PARAMS=\"-url http://localhost:8000 -debug -stop-service-at-end $TEST_HARNESS_PARAMS\" sh",

packages/sdk/cloudflare/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"scripts": {
2929
"doc": "../../../scripts/build-doc.sh .",
3030
"build": "../../../scripts/build-package.sh",
31+
"clean": "rimraf dist",
3132
"tsw": "yarn tsc --watch",
3233
"start": "rimraf dist && yarn tsw",
3334
"lint": "eslint . --ext .ts",

packages/sdk/server-node/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"client"
2020
],
2121
"scripts": {
22+
"clean": "npx tsc --build --clean",
2223
"//": "We run the tests in-band because the FS tests work best sequential.",
2324
"test": "npx jest --ci --runInBand",
2425
"build": "npx tsc",

packages/shared/common/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"scripts": {
2222
"test": "npx jest --ci",
2323
"build": "npx tsc",
24+
"clean": "npx tsc --build --clean",
2425
"lint": "npx eslint . --ext .ts",
2526
"lint:fix": "yarn run lint -- --fix"
2627
},

packages/shared/common/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
"declarationMap": true, // enables importers to jump to source
1515
"stripInternal": true
1616
},
17-
"exclude": ["**/*.test.ts", "__tests__"]
17+
"exclude": ["**/*.test.ts", "dist", "node_modules", "__tests__"]
1818
}

packages/shared/sdk-server-edge/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"doc": "../../../scripts/build-doc.sh .",
2929
"build": "../../../scripts/build-package.sh",
3030
"tsw": "yarn tsc --watch",
31+
"clean": "rimraf dist",
3132
"start": "rimraf dist && yarn tsw",
3233
"lint": "eslint . --ext .ts",
3334
"prettier": "prettier --write '**/*.@(js|ts|tsx|json|css)' --ignore-path ../../../.prettierignore",

packages/shared/sdk-server/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"scripts": {
2222
"test": "npx jest --ci",
2323
"build": "npx tsc",
24+
"clean": "npx tsc --build --clean",
2425
"lint": "npx eslint . --ext .ts",
2526
"lint:fix": "yarn run lint -- --fix"
2627
},

packages/shared/sdk-server/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
"declarationMap": true, // enables importers to jump to source
1515
"stripInternal": true
1616
},
17-
"exclude": ["**/*.test.ts", "__tests__"]
17+
"exclude": ["**/*.test.ts", "dist", "node_modules", "__tests__"]
1818
}

0 commit comments

Comments
 (0)