Skip to content

Commit dd7746c

Browse files
author
Adam Plesnik
committed
Add SWC, npm run build
1 parent 23f6cc0 commit dd7746c

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.swcrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "http://json.schemastore.org/swcrc",
3+
"module": {
4+
"type": "commonjs",
5+
"strict": false,
6+
"strictMode": true,
7+
"lazy": false,
8+
"noInterop": false
9+
}
10+
}

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"scripts": {
3+
"build": "npx swc ./src/index.ts --out-dir ./dist"
4+
},
25
"prettier": {
36
"printWidth": 100,
47
"semi": false,
@@ -9,8 +12,11 @@
912
"tailwindcss": ">=3.2.0"
1013
},
1114
"devDependencies": {
15+
"@swc/cli": "^0.3.10",
16+
"@swc/core": "^1.4.11",
1217
"prettier": "^3.2.5",
13-
"typescript": "^5.4.3",
14-
"tailwindcss": "^0.0.0-insiders.3ba51d1"
18+
"swcify": "^1.0.1",
19+
"tailwindcss": "^0.0.0-insiders.3ba51d1",
20+
"typescript": "^5.4.3"
1521
}
1622
}

0 commit comments

Comments
 (0)