1
0
Fork 0
mirror of synced 2024-10-01 17:47:46 +13:00

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", "setup": "node ./hosting/scripts/setup.js && yarn && yarn bootstrap && yarn build && yarn dev",
"bootstrap": "lerna link && lerna bootstrap && ./scripts/link-dependencies.sh", "bootstrap": "lerna link && lerna bootstrap && ./scripts/link-dependencies.sh",
"build": "lerna run build", "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": "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:develop": "lerna publish prerelease --yes --force-publish --dist-tag develop && yarn release:pro:develop",
"release:pro": "bash scripts/pro/release.sh", "release:pro": "bash scripts/pro/release.sh",

View file

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

View file

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

View file

@ -10,7 +10,7 @@
}, },
"scripts": { "scripts": {
"build": "rimraf dist/ && tsc -p tsconfig.build.json && mv dist/src/* dist/ && rimraf dist/src/ && yarn postbuild", "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", "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/", "postbuild": "copyfiles -u 1 src/**/*.svelte dist/ && copyfiles -u 1 src/**/*.hbs dist/ && copyfiles -u 1 src/**/*.json dist/",
"test": "jest --coverage --maxWorkers=2", "test": "jest --coverage --maxWorkers=2",

View file

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

View file

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

View file

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

View file

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