Add TS references to improve build watching

This commit is contained in:
Rory Powell 2022-05-25 13:31:49 +01:00
parent 6a4c601ae8
commit 1eed4da35f
8 changed files with 13 additions and 4 deletions

View File

@ -24,7 +24,7 @@
"setup": "node ./hosting/scripts/setup.js && yarn && yarn bootstrap && yarn build && yarn dev",
"bootstrap": "lerna link && lerna bootstrap && ./scripts/link-dependencies.sh",
"build": "lerna run build",
"build:watch": "lerna run build:watch --ignore @budibase/backend-core --stream --parallel",
"build:watch": "lerna run build:watch --stream --parallel",
"release": "lerna publish patch --yes --force-publish && yarn release:pro",
"release:develop": "lerna publish prerelease --yes --force-publish --dist-tag develop && yarn release:pro:develop",
"release:pro": "bash scripts/pro/release.sh",

View File

@ -8,7 +8,6 @@
"license": "GPL-3.0",
"scripts": {
"build": "rimraf dist/ && tsc -p tsconfig.build.json",
"build:watch": "rimraf dist/ && tsc -p tsconfig.build.json --watch --preserveWatchOutput",
"test": "jest",
"test:watch": "jest --watchAll"
},

View File

@ -22,6 +22,7 @@
"resolveJsonModule": true,
"incremental": true,
"types": [ "node", "jest"],
"composite": true
},
"include": [
"**/*.js",

View File

@ -10,7 +10,7 @@
},
"scripts": {
"build": "rimraf dist/ && tsc -p tsconfig.build.json && mv dist/src/* dist/ && rimraf dist/src/ && yarn postbuild",
"build:watch": "rimraf dist/ && tsc -p tsconfig.build.json --watch --preserveWatchOutput",
"build:watch": "rimraf dist/ && tsc --build tsconfig.build.json --watch --preserveWatchOutput",
"debug": "yarn build && node --expose-gc --inspect=9222 dist/index.js",
"postbuild": "copyfiles -u 1 src/**/*.svelte dist/ && copyfiles -u 1 src/**/*.hbs dist/ && copyfiles -u 1 src/**/*.json dist/",
"test": "jest --coverage --maxWorkers=2",

View File

@ -1,6 +1,9 @@
{
// Used for building with tsc
"extends": "./tsconfig.json",
"references": [
{ "path": "../backend-core/tsconfig.build.json" }
],
"exclude": [
"node_modules",
"**/*.json",

View File

@ -16,6 +16,9 @@
"./src/**/*",
"./src/module.d.ts"
],
"references": [
{ "path": "../backend-core/tsconfig.build.json" }
],
"exclude": [
"node_modules",
"**/*.json",

View File

@ -13,7 +13,7 @@
],
"scripts": {
"build": "rimraf dist/ && tsc",
"build:watch": "rimraf dist/ && tsc --watch --preserveWatchOutput",
"build:watch": "rimraf dist/ && tsc --build --watch --preserveWatchOutput",
"postbuild": "copyfiles -u 1 src/**/*.hbs dist/",
"run:docker": "node dist/index.js",
"build:docker": "docker build . -t worker-service --label version=$BUDIBASE_RELEASE_VERSION",

View File

@ -12,6 +12,9 @@
"incremental": true,
"types": [ "node", "jest"],
},
"references": [
{ "path": "../backend-core/tsconfig.build.json" }
],
"include": [
"./src/**/*"
],