Skip to content

Commit e60b2e9

Browse files
committed
fix testCompile and lint tests
1 parent 7e3cd3d commit e60b2e9

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

buildspec/lint.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ phases:
2626
build:
2727
commands:
2828
- export HOME=/home/codebuild-user
29-
- npm run testCompile
29+
- npm run compile -w packages/core
30+
- npm run testCompile -w packages/ --if-present
3031
- npm run lint
3132
- VCS_COMMIT_ID="${CODEBUILD_RESOLVED_SOURCE_VERSION}"
3233
- CI_BUILD_URL=$(echo $CODEBUILD_BUILD_URL | sed 's/#/%23/g') # Encode `#` in the URL because otherwise the url is clipped in the Codecov.io site

buildspec/windowsTests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ phases:
3030

3131
build:
3232
commands:
33-
- npm run testCompile
33+
- npm run compile -w packages/core
34+
- npm run testCompile -w packages/ --if-present
3435
- npm run lint
3536
- $env:TEST_REPORT_DIR="$env:CODEBUILD_SRC_DIR/.test_reports"; npm run test
3637
- |

packages/core/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4056,13 +4056,12 @@
40564056
"clean": "ts-node ../../scripts/clean.ts dist/",
40574057
"copyFiles": "ts-node ./scripts/build/copyFiles.ts",
40584058
"buildScripts": "npm run generateClients && npm run generateIcons && npm run copyFiles",
4059-
"compile": "npm run testCompile && webpack",
4059+
"compile": "npm run clean && npm run buildScripts && npm run compileOnly && webpack",
40604060
"compileOnly": "tsc -p ./",
40614061
"compileDev": "npm run compile -- --mode development",
40624062
"webpackDev": "webpack --mode development",
40634063
"serveVue": "webpack serve --config-name vue --mode development",
4064-
"watch": "npm run testCompile -- -- --watch",
4065-
"testCompile": "npm run clean && npm run buildScripts && npm run compileOnly",
4064+
"watch": "npm run clean && npm run buildScripts && npm run compileOnly -- --watch",
40664065
"lint": "ts-node ./scripts/lint/testLint.ts",
40674066
"generateClients": "ts-node ./scripts/build/generateServiceClient.ts ",
40684067
"generateIcons": "ts-node ../../scripts/generateIcons.ts",

0 commit comments

Comments
 (0)