Skip to content

Commit 8d5a19d

Browse files
committed
fix: npm run build didn't compile actual sources
this results in the dist directory missing entirely fixes camunda-community-hub#163
1 parent 3a1036a commit 8d5a19d

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.circleci/config.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ jobs:
8383
command: npm test
8484
- run:
8585
name: build
86-
command: npm run build
86+
command: |-
87+
npm run build
88+
ls dist 2&>/dev/null || echo "dist directory missing"
8789
- run:
8890
name: npmrc
8991
command: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
"main": "dist/index.js",
2727
"bin": "./bin/zeebe-node",
2828
"scripts": {
29-
"build": "tsc",
30-
"watch": "tsc -w",
31-
"prepare": "tsc",
29+
"build": "tsc --build src/tsconfig.json",
30+
"watch": "tsc --build src/tsconfig.json -w",
31+
"prepare": "tsc --build src/tsconfig.json",
3232
"test": "jest --runInBand --detectOpenHandles --testPathIgnorePatterns integration local-integration disconnection",
3333
"test:integration": "jest --runInBand --testPathIgnorePatterns disconnection --detectOpenHandles --verbose true",
3434
"test:local": "jest --runInBand --verbose true --detectOpenHandles local-integration",

tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"compilerOptions": {
3+
"composite": true, /* Required because referenced by src/tsconfig.json */
34
/* Basic Options */
45
"target": "es2018" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */,
56
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,

0 commit comments

Comments
 (0)