chore: Update package build scripts.

This commit is contained in:
Sam 2022-09-10 15:00:04 +02:00
parent cc6925250b
commit 8444651ebe
No known key found for this signature in database
GPG Key ID: D004126FCD1A6DF0
45 changed files with 54 additions and 99 deletions

View File

@ -29,7 +29,8 @@
],
"scripts": {
"build:turbo": "turbo run build",
"clean": "lerna run clean",
"build": "pnpm -r run build",
"clean": "pnpm -r run clean",
"lerna:publish": "lerna publish from-git",
"lerna:version": "lerna version --no-git-tag-version",
"prettier": "prettier --config .prettierrc --write **/*.js",

View File

@ -44,11 +44,10 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc && node dist/scripts/generateDefaultTypes.js",
"build": "swc src --out-dir dist --config-file ../../.swcrc --delete-dir-on-start && node dist/scripts/generateDefaultTypes.js",
"clean": "rm -rf dist",
"prepare": "pnpm build",
"start": "node dist/scripts/run.js",
"swc": "swc src --out-dir dist --config-file ../../.swcrc --delete-dir-on-start",
"test": "pnpm node --experimental-vm-modules $(pnpm bin jest)"
},
"dependencies": {

View File

@ -32,11 +32,10 @@
],
"exports": "./dist/index.js",
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../.swcrc --delete-dir-on-start",
"clean": "rm -rf dist && rm -rf .lowdefy",
"start": "pnpm node ./dist/index.js",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../.swcrc --delete-dir-on-start",
"test": "FORCE_COLOR=3 pnpm node --experimental-vm-modules $(pnpm bin jest)"
},
"dependencies": {

View File

@ -33,11 +33,10 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../.swcrc --delete-dir-on-start && pnpm copyfiles",
"clean": "rm -rf dist",
"copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.yaml\" -e \"./src/**/*.snap\"",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../.swcrc --delete-dir-on-start && pnpm copyfiles",
"test:watch": "jest --coverage --watch",
"test": "jest --coverage"
},

View File

@ -36,10 +36,9 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../.swcrc --delete-dir-on-start",
"clean": "rm -rf .lowdefy",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../.swcrc --delete-dir-on-start",
"test": "pnpm node --experimental-vm-modules $(pnpm bin jest)"
},
"dependencies": {

View File

@ -30,10 +30,9 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../.swcrc --delete-dir-on-start",
"clean": "rm -rf dist",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../.swcrc --delete-dir-on-start",
"test": "pnpm node --experimental-vm-modules $(pnpm bin jest)"
},
"dependencies": {

View File

@ -34,11 +34,10 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../.swcrc --delete-dir-on-start && pnpm copyfiles",
"clean": "rm -rf dist",
"copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.yaml\" -e \"./src/**/*.snap\"",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../.swcrc --delete-dir-on-start && pnpm copyfiles",
"test": "jest --coverage"
},
"dependencies": {

View File

@ -34,10 +34,9 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../.swcrc --delete-dir-on-start",
"clean": "rm -rf dist",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../.swcrc --delete-dir-on-start",
"test": "jest --coverage --testTimeout=10000",
"test:watch": "jest --coverage --watch"
},

View File

@ -43,10 +43,9 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"clean": "rm -rf dist",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"test": "pnpm node --experimental-vm-modules $(pnpm bin jest)"
},
"dependencies": {

View File

@ -33,11 +33,9 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"clean": "rm -rf dist",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"test": "pnpm node --experimental-vm-modules $(pnpm bin jest)"
"prepare": "pnpm build"
},
"dependencies": {
"pdfmake": "0.2.5"

View File

@ -42,11 +42,10 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start && pnpm copyfiles",
"clean": "rm -rf dist",
"copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.yaml\" -e \"./src/**/*.snap\"",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start && pnpm copyfiles",
"test:watch": "jest --coverage --watch",
"test": "jest --coverage"
},

View File

@ -42,11 +42,10 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start && pnpm copyfiles",
"clean": "rm -rf dist",
"copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.yaml\" -e \"./src/**/*.snap\"",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start && pnpm copyfiles",
"test:watch": "jest --coverage --watch",
"test": "jest --coverage"
},

View File

@ -40,11 +40,10 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start && pnpm copyfiles",
"clean": "rm -rf dist",
"copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.yaml\" -e \"./src/**/*.snap\"",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start && pnpm copyfiles",
"test:watch": "jest --coverage --watch",
"test": "jest --coverage"
},

View File

@ -42,11 +42,10 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start && pnpm copyfiles",
"clean": "rm -rf dist",
"copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.yaml\" -e \"./src/**/*.snap\"",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start && pnpm copyfiles",
"test:watch": "jest --coverage --watch",
"test": "jest --coverage"
},

View File

@ -42,11 +42,10 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start && pnpm copyfiles",
"clean": "rm -rf dist",
"copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.yaml\" -e \"./src/**/*.snap\"",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start && pnpm copyfiles",
"test:watch": "jest --coverage --watch",
"test": "jest --coverage"
},

View File

@ -34,11 +34,10 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start && pnpm copyfiles",
"clean": "rm -rf dist",
"copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.yaml\" -e \"./src/**/*.snap\"",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start && pnpm copyfiles",
"test:watch": "jest --coverage --watch",
"test": "jest --coverage"
},

View File

@ -40,11 +40,10 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start && pnpm copyfiles",
"clean": "rm -rf dist",
"copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.yaml\" -e \"./src/**/*.snap\"",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start && pnpm copyfiles",
"test:watch": "jest --coverage --watch",
"test": "jest --coverage"
},

View File

@ -38,11 +38,10 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start && pnpm copyfiles",
"clean": "rm -rf dist",
"copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.yaml\" -e \"./src/**/*.snap\"",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start && pnpm copyfiles",
"test:watch": "jest --coverage --watch",
"test": "jest --coverage"
},

View File

@ -41,11 +41,10 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start && pnpm copyfiles",
"clean": "rm -rf dist",
"copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.yaml\" -e \"./src/**/*.snap\"",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start && pnpm copyfiles",
"test:watch": "jest --coverage --watch",
"test": "jest --coverage"
},

View File

@ -35,10 +35,9 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"clean": "rm -rf dist",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"test": "jest --coverage"
},
"dependencies": {

View File

@ -35,10 +35,9 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"clean": "rm -rf dist",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"test": "jest --coverage"
},
"dependencies": {

View File

@ -35,10 +35,9 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"clean": "rm -rf dist",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"test": "jest --coverage"
},
"dependencies": {

View File

@ -35,10 +35,10 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"clean": "rm -rf dist",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"swc": "",
"test": "jest --coverage"
},
"dependencies": {

View File

@ -39,10 +39,9 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"clean": "rm -rf dist",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"test": "jest --coverage"
},
"dependencies": {

View File

@ -35,10 +35,9 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"clean": "rm -rf dist",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"test": "jest --coverage"
},
"dependencies": {

View File

@ -35,12 +35,10 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"clean": "rm -rf dist",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"test": "jest --coverage",
"s": "swc"
"test": "jest --coverage"
},
"dependencies": {
"@lowdefy/helpers": "4.0.0-alpha.27",

View File

@ -36,10 +36,9 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"clean": "rm -rf dist",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"test": "jest --coverage"
},
"dependencies": {

View File

@ -36,10 +36,9 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"clean": "rm -rf dist",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"test": "jest --coverage"
},
"dependencies": {

View File

@ -42,10 +42,9 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"clean": "rm -rf dist",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"test": "jest --coverage"
},
"dependencies": {

View File

@ -40,10 +40,9 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"clean": "rm -rf dist",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"test": "TZ=UTC jest --coverage"
},
"dependencies": {

View File

@ -36,10 +36,9 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"clean": "rm -rf dist",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"test": "jest --coverage"
},
"dependencies": {

View File

@ -36,10 +36,9 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"clean": "rm -rf dist",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"test": "jest --coverage"
},
"dependencies": {

View File

@ -36,10 +36,9 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"clean": "rm -rf dist",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"test": "jest --coverage"
},
"dependencies": {

View File

@ -36,10 +36,9 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"clean": "rm -rf dist",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"test": "jest --coverage"
},
"dependencies": {

View File

@ -35,10 +35,9 @@
"*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"clean": "rm -rf dist",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files"
"prepare": "pnpm build"
},
"devDependencies": {
"@swc/cli": "0.1.57",

View File

@ -34,11 +34,10 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start && pnpm copyfiles",
"clean": "rm -rf dist",
"copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.yaml\" -e \"./src/**/*.snap\"",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start && pnpm copyfiles",
"test": "jest --coverage"
},
"dependencies": {

View File

@ -36,11 +36,9 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"clean": "rm -rf dist",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"test": "pnpm node --experimental-vm-modules $(pnpm bin jest)"
"prepare": "pnpm build"
},
"devDependencies": {
"@jest/globals": "28.1.0",

View File

@ -35,10 +35,9 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
"clean": "rm -rf dist",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files"
"prepare": "pnpm build"
},
"dependencies": {
"next-auth": "4.10.3"

View File

@ -33,10 +33,9 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../.swcrc --delete-dir-on-start",
"clean": "rm -rf dist",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../.swcrc --delete-dir-on-start",
"test": "jest --coverage"
},
"dependencies": {

View File

@ -31,10 +31,9 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../.swcrc --delete-dir-on-start",
"clean": "rm -rf dist",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../.swcrc --delete-dir-on-start"
"prepare": "pnpm build"
},
"dependencies": {
"@emotion/jest": "11.9.1",

View File

@ -34,11 +34,10 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../.swcrc --delete-dir-on-start && pnpm copyfiles",
"clean": "rm -rf dist",
"copyfiles": "copyfiles -u 1 \"./src/**/*\" dist -e \"./src/**/*.js\" -e \"./src/**/*.yaml\" -e \"./src/**/*.snap\"",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../.swcrc --delete-dir-on-start && pnpm copyfiles",
"test:watch": "jest --coverage --watch",
"test": "jest --coverage"
},

View File

@ -31,10 +31,9 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../.swcrc --delete-dir-on-start",
"clean": "rm -rf dist",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../.swcrc --delete-dir-on-start",
"test": "jest --coverage"
},
"dependencies": {

View File

@ -26,10 +26,9 @@
"url": "https://github.com/lowdefy/lowdefy.git"
},
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ./.swcrc --delete-dir-on-start",
"clean": "rm -rf dist",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ./.swcrc --delete-dir-on-start"
"prepare": "pnpm build"
},
"dependencies": {
"@swc/cli": "0.1.57",

View File

@ -34,10 +34,9 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../.swcrc --delete-dir-on-start",
"clean": "rm -rf dist",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../.swcrc --delete-dir-on-start",
"test": "jest --coverage"
},
"dependencies": {

View File

@ -33,10 +33,9 @@
"dist/*"
],
"scripts": {
"build": "pnpm swc",
"build": "swc src --out-dir dist --config-file ../../../.swcrc --delete-dir-on-start",
"clean": "rm -rf dist",
"prepare": "pnpm build",
"swc": "swc src --out-dir dist --config-file ../../../.swcrc --delete-dir-on-start",
"test": "jest --coverage"
},
"dependencies": {