Skip to content

Commit 867b040

Browse files
chore: add vite and vitest setup
1 parent b29bc03 commit 867b040

File tree

6 files changed

+132
-119
lines changed

6 files changed

+132
-119
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,6 @@ pnpm-lock.yaml
4444

4545
# Build directory
4646
build
47+
dist/
48+
*.tsbuildinfo
49+
.DS_Store

packages/signal-polyfill/package.json

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
{
22
"name": "signal-polyfill",
33
"version": "0.1.0",
4-
"description": "A polyfill for the TC39 Signals proposal.",
4+
"description": "A polyfill for the TC39 Signal proposal.",
55
"main": "dist/index.js",
66
"type": "module",
77
"types": "dist/index.d.ts",
88
"scripts": {
9-
"build": "tsc -b tsconfig.json",
10-
"watch": "tsc -b tsconfig.json -watch"
9+
"dev": "vite",
10+
"build": "tsc && vite build",
11+
"test": "vitest"
1112
},
1213
"author": "EisenbergEffect",
1314
"license": "MIT",
14-
"dependencies": {
15-
"tslib": "latest"
16-
},
1715
"devDependencies": {
18-
"typescript": "latest"
16+
"@types/node": "^20.11.25",
17+
"typescript": "latest",
18+
"vite": "^5.2.6",
19+
"vite-plugin-dts": "^3.7.3",
20+
"vitest": "^1.4.0"
1921
}
20-
}
22+
}

0 commit comments

Comments
 (0)