Build dev fixes

This commit is contained in:
Rory Powell 2022-06-09 13:15:20 +01:00
parent 0cf777a0cd
commit 1a7a7ac726
9 changed files with 25 additions and 15 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:dev": "tsc --build tsconfig.json --watch --preserveWatchOutput",
"build:dev": "lerna run prebuild && lerna run build:dev --scope @budibase/server --scope @budibase/worker --stream",
"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

@ -7,7 +7,9 @@
"author": "Budibase",
"license": "GPL-3.0",
"scripts": {
"build": "rimraf dist/ && tsc -p tsconfig.build.json",
"prebuild": "rimraf dist/",
"build": "tsc -p tsconfig.build.json",
"build:dev": "yarn prebuild && tsc --build --watch --preserveWatchOutput",
"test": "jest",
"test:watch": "jest --watchAll"
},

View File

@ -9,7 +9,9 @@
"url": "https://github.com/Budibase/budibase.git"
},
"scripts": {
"build": "rimraf dist/ && tsc -p tsconfig.build.json && mv dist/src/* dist/ && rimraf dist/src/",
"prebuild": "rimraf dist/",
"build": "tsc -p tsconfig.build.json && mv dist/src/* dist/ && rimraf dist/src/",
"build:dev": "yarn prebuild && tsc --build --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",
@ -158,6 +160,7 @@
"@types/redis": "4.0.11",
"@types/jest": "27.5.1",
"@types/global-agent": "2.1.1",
"@types/node-fetch": "2.6.1",
"@typescript-eslint/parser": "5.12.0",
"apidoc": "0.50.4",
"babel-jest": "27.5.1",

View File

@ -2,7 +2,7 @@
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"lib": ["es2020"],
"lib": ["es2020", "dom"],
"allowJs": true,
"strict": true,
"noImplicitAny": true,
@ -14,6 +14,7 @@
},
"include": [
"src/**/*",
"specs",
"package.json"
],
"exclude": [

View File

@ -2727,6 +2727,14 @@
"@types/bson" "*"
"@types/node" "*"
"@types/node-fetch@2.6.1":
version "2.6.1"
resolved "https://registry.yarnpkg.com/@types/node-fetch/-/node-fetch-2.6.1.tgz#8f127c50481db65886800ef496f20bbf15518975"
integrity sha512-oMqjURCaxoSIsHSr1E47QHzbmzNR5rK8McHuNb11BOM9cHcIK3Avy0s/b2JlXHoQGTYS3NsvWzV1M0iK7l0wbA==
dependencies:
"@types/node" "*"
form-data "^3.0.0"
"@types/node@*", "@types/node@>=12.12.47", "@types/node@>=13.13.4", "@types/node@>=13.7.0":
version "17.0.41"
resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.41.tgz#1607b2fd3da014ae5d4d1b31bc792a39348dfb9b"

View File

@ -1,4 +1,5 @@
node_modules/
dist
coverage/
tsconfig.build.tsbuildinfo
tsconfig.build.tsbuildinfo
tsconfig.tsbuildinfo

View File

@ -7,7 +7,8 @@
"author": "Budibase",
"license": "GPL-3.0",
"scripts": {
"build": "rimraf dist/ && rm -f tsconfig.build.tsbuildinfo && tsc -p tsconfig.build.json"
"prebuild": "rimraf dist/ && rm -f tsconfig.build.tsbuildinfo && rm -rf tsconfig.tsbuildinfo",
"build": "tsc -p tsconfig.build.json"
},
"jest": {
},

View File

@ -12,7 +12,9 @@
"budibase"
],
"scripts": {
"build": "rimraf dist/ && rm -f tsconfig.build.tsbuildinfo && tsc -p tsconfig.build.json && mv dist/src/* dist/ && rimraf dist/src/",
"prebuild": "rimraf dist/",
"build": "tsc -p tsconfig.build.json",
"build:dev": "yarn prebuild && tsc --build --watch --preserveWatchOutput",
"postbuild": "copyfiles -u 1 src/**/*.hbs dist/",
"run:docker": "node dist/index.js",
"run:docker:cluster": "pm2-runtime start pm2.config.js",

View File

@ -1,8 +0,0 @@
{
"references": [
{ "path": "packages/types/tsconfig.json" },
{ "path": "packages/backend-core/tsconfig.json" },
{ "path": "packages/server/tsconfig.json" },
{ "path": "packages/worker/tsconfig.json" },
]
}