chore(plugin-cloud): rework build

This commit is contained in:
Elliot DeNolf
2023-10-25 13:17:01 -04:00
parent 5bf1cd6d93
commit 718ab6f93b
2 changed files with 22 additions and 7 deletions

View File

@@ -0,0 +1,16 @@
{
"$schema": "https://json.schemastore.org/swcrc",
"sourceMaps": "inline",
"exclude": ["/**/*.spec.ts", "/**/mocks"],
"jsc": {
"target": "esnext",
"parser": {
"syntax": "typescript",
"tsx": true,
"dts": true
}
},
"module": {
"type": "commonjs"
}
}

View File

@@ -6,13 +6,12 @@
"types": "dist/index.d.ts",
"license": "MIT",
"scripts": {
"build": "tsc",
"test": "jest",
"build:watch": "tsc -w",
"lint": "eslint src",
"lint:fix": "eslint --fix --ext .ts,.tsx src",
"clean": "rimraf dist && rimraf dev/yarn.lock",
"prepublishOnly": "yarn clean && yarn build && yarn test"
"build": "pnpm build:swc && pnpm build:types",
"build:swc": "swc ./src -d ./dist --config-file .swcrc",
"build:types": "tsc --emitDeclarationOnly --outDir dist",
"clean": "rimraf {dist,*.tsbuildinfo} && rimraf dev/yarn.lock",
"prepublishOnly": "pnpm clean && pnpm build && pnpm test",
"test": "jest"
},
"peerDependencies": {
"payload": "^1.8.2 || ^2.0.0"