Skip to content

Commit

Permalink
fix: Ensure top level commands work correctly (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
kinyoklion authored Apr 27, 2023
1 parent 6c05dee commit 762571f
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
],
"private": true,
"scripts": {
"clean": "npx tsc --build --clean",
"build": "npx tsc --build",
"clean": "yarn workspaces foreach -pt run clean",
"build": "yarn workspaces foreach -pt run build",
"//": "When using build:doc you need to specify the workspace. 'yarn run build:doc packages/shared/common' for example.",
"build:doc": "./scripts/build-doc.sh $1",
"lint": "npx eslint . --ext .ts",
"lint:fix": "yarn run lint -- --fix",
"test": "npx jest",
"test": "echo Please run tests for individual packages.",
"coverage": "npm run test -- --coverage",
"contract-test-service": "npm --prefix contract-tests install && npm --prefix contract-tests start",
"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",
Expand Down
1 change: 1 addition & 0 deletions packages/sdk/cloudflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"scripts": {
"doc": "../../../scripts/build-doc.sh .",
"build": "../../../scripts/build-package.sh",
"clean": "rimraf dist",
"tsw": "yarn tsc --watch",
"start": "rimraf dist && yarn tsw",
"lint": "eslint . --ext .ts",
Expand Down
1 change: 1 addition & 0 deletions packages/sdk/server-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"client"
],
"scripts": {
"clean": "npx tsc --build --clean",
"//": "We run the tests in-band because the FS tests work best sequential.",
"test": "npx jest --ci --runInBand",
"build": "npx tsc",
Expand Down
1 change: 1 addition & 0 deletions packages/shared/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"scripts": {
"test": "npx jest --ci",
"build": "npx tsc",
"clean": "npx tsc --build --clean",
"lint": "npx eslint . --ext .ts",
"lint:fix": "yarn run lint -- --fix"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/common/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
"declarationMap": true, // enables importers to jump to source
"stripInternal": true
},
"exclude": ["**/*.test.ts", "__tests__"]
"exclude": ["**/*.test.ts", "dist", "node_modules", "__tests__"]
}
1 change: 1 addition & 0 deletions packages/shared/sdk-server-edge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"doc": "../../../scripts/build-doc.sh .",
"build": "../../../scripts/build-package.sh",
"tsw": "yarn tsc --watch",
"clean": "rimraf dist",
"start": "rimraf dist && yarn tsw",
"lint": "eslint . --ext .ts",
"prettier": "prettier --write '**/*.@(js|ts|tsx|json|css)' --ignore-path ../../../.prettierignore",
Expand Down
1 change: 1 addition & 0 deletions packages/shared/sdk-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"scripts": {
"test": "npx jest --ci",
"build": "npx tsc",
"clean": "npx tsc --build --clean",
"lint": "npx eslint . --ext .ts",
"lint:fix": "yarn run lint -- --fix"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/sdk-server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
"declarationMap": true, // enables importers to jump to source
"stripInternal": true
},
"exclude": ["**/*.test.ts", "__tests__"]
"exclude": ["**/*.test.ts", "dist", "node_modules", "__tests__"]
}

0 comments on commit 762571f

Please sign in to comment.