Skip to content

Commit

Permalink
feat: integrate SWC for project bundling
Browse files Browse the repository at this point in the history
- Added SWC for project bundling and compilation.
  • Loading branch information
RaulCatalinas committed Apr 28, 2024
1 parent 1575177 commit 432a81f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
10 changes: 10 additions & 0 deletions .swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://json.schemastore.org/swcrc",
"minify": true,
"jsc": {
"target": "esnext",
"parser": {
"syntax": "typescript"
}
}
}
Binary file modified bun.lockb
Binary file not shown.
15 changes: 10 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
{
"name": "huskybc",
"module": "src/index.ts",
"module": "build/src/index.js",
"type": "module",
"version": "0.0.1",
"scripts": {
"prepare": "husky",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"format": "prettier src --check",
"format:write": "prettier src --write"
"format:write": "prettier src --write",
"build": "swc src -d build --config-file .swcrc --ignore src/types",
"prepublishOnly": "bun run build"
},
"dependencies": {
"commander": "12.0.0"
},
"devDependencies": {
"@commitlint/cli": "19.3.0",
"@commitlint/config-conventional": "19.2.2",
"@swc/cli": "0.3.12",
"@swc/core": "1.4.17",
"@types/bun": "1.1.0",
"@typescript-eslint/eslint-plugin": "^7.0.1",
"eslint": "^8.0.1",
Expand All @@ -24,8 +32,5 @@
"markdownlint": "0.34.0",
"prettier": "3.2.5",
"typescript": "5.4.5"
},
"dependencies": {
"commander": "12.0.0"
}
}

0 comments on commit 432a81f

Please sign in to comment.