Skip to content

Commit

Permalink
feat: use swc on build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
junners committed Jan 27, 2025
1 parent 2680ffa commit c74542a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ out/

*.log

coverage/
coverage/
types/
3 changes: 2 additions & 1 deletion .swcrc
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
},
"keepClassNames": true,
"baseUrl": "./"
}
},
"minify": true
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "lightning-flow-scanner-core",
"version": "4.14.0",
"main": "out/index.js",
"main": "index.js",
"types": "index.d.ts",
"engines": {
"node": "^20 || ^22 || ^23"
Expand All @@ -21,9 +21,9 @@
"swc:build": "swc src --out-dir out",
"swc:build:link": "npm run prepack && npm run cp:files && npm link ./out/src",
"swc:gen:types": "tsc -p tsconfig.types.json --declaration --emitDeclarationOnly",
"swc:cp:types": "npm run gen:types && cp -R ./types/* ./out/src",
"swc:cp:types": "npm run swc:gen:types && cp -R ./types/* ./out/src",
"swc:cp:files": "cp ./readme.md ./package*.json ./out/src && cp -R ./media ./out/src",
"swc:sim:pack": "npm run build && npm run cp:files && npm run cp:types",
"swc:sim:pack": "npm run swc:build && npm run swc:cp:files && npm run swc:cp:types",
"postversion": "cp package.json ../.. && cp package-lock.json ../.."
},
"keywords": [],
Expand Down

0 comments on commit c74542a

Please sign in to comment.