Skip to content

Commit cf1d161

Browse files
committed
feat(dialect-bun-worker): init
1 parent ca5e9ff commit cf1d161

File tree

16 files changed

+659
-12
lines changed

16 files changed

+659
-12
lines changed

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
if git diff --name-only --cached | grep -vE '\.(md|yml)$' &> /dev/null; then
55
npx lint-staged
66
npm run typecheck
7-
npx vitest run --passWithNoTests
7+
npm run test
88
fi

commitlint.config.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ module.exports = {
1414
'plugin',
1515
'dialect-tauri',
1616
'dialect-wasm',
17+
'dialect-bun-worker',
1718
'dialect-sqlite-worker',
1819
'dialect-wasqlite-worker',
1920
'builder',

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"release": "bumpp package.json packages/**/package.json",
2121
"serve": "cd playground && pnpm run dev",
2222
"publish": "pnpm -r -F \"./packages/*\" publish --no-git-checks",
23-
"test": "vitest run",
23+
"test": "vitest run --root ./test",
2424
"test:watch": "vitest",
2525
"typecheck": "tsc --noEmit",
2626
"lint": "eslint --cache . --fix",
@@ -65,4 +65,4 @@
6565
}
6666
},
6767
"packageManager": "pnpm@8.6.0"
68-
}
68+
}
Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
# Based on https://raw.githubusercontent.com/github/gitignore/main/Node.gitignore
2+
3+
# Logs
4+
5+
logs
6+
_.log
7+
npm-debug.log_
8+
yarn-debug.log*
9+
yarn-error.log*
10+
lerna-debug.log*
11+
.pnpm-debug.log*
12+
13+
# Diagnostic reports (https://nodejs.org/api/report.html)
14+
15+
report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
16+
17+
# Runtime data
18+
19+
pids
20+
_.pid
21+
_.seed
22+
\*.pid.lock
23+
24+
# Directory for instrumented libs generated by jscoverage/JSCover
25+
26+
lib-cov
27+
28+
# Coverage directory used by tools like istanbul
29+
30+
coverage
31+
\*.lcov
32+
33+
# nyc test coverage
34+
35+
.nyc_output
36+
37+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
38+
39+
.grunt
40+
41+
# Bower dependency directory (https://bower.io/)
42+
43+
bower_components
44+
45+
# node-waf configuration
46+
47+
.lock-wscript
48+
49+
# Compiled binary addons (https://nodejs.org/api/addons.html)
50+
51+
build/Release
52+
53+
# Dependency directories
54+
55+
node_modules/
56+
jspm_packages/
57+
58+
# Snowpack dependency directory (https://snowpack.dev/)
59+
60+
web_modules/
61+
62+
# TypeScript cache
63+
64+
\*.tsbuildinfo
65+
66+
# Optional npm cache directory
67+
68+
.npm
69+
70+
# Optional eslint cache
71+
72+
.eslintcache
73+
74+
# Optional stylelint cache
75+
76+
.stylelintcache
77+
78+
# Microbundle cache
79+
80+
.rpt2_cache/
81+
.rts2_cache_cjs/
82+
.rts2_cache_es/
83+
.rts2_cache_umd/
84+
85+
# Optional REPL history
86+
87+
.node_repl_history
88+
89+
# Output of 'npm pack'
90+
91+
\*.tgz
92+
93+
# Yarn Integrity file
94+
95+
.yarn-integrity
96+
97+
# dotenv environment variable files
98+
99+
.env
100+
.env.development.local
101+
.env.test.local
102+
.env.production.local
103+
.env.local
104+
105+
# parcel-bundler cache (https://parceljs.org/)
106+
107+
.cache
108+
.parcel-cache
109+
110+
# Next.js build output
111+
112+
.next
113+
out
114+
115+
# Nuxt.js build / generate output
116+
117+
.nuxt
118+
dist
119+
120+
# Gatsby files
121+
122+
.cache/
123+
124+
# Comment in the public line in if your project uses Gatsby and not Next.js
125+
126+
# https://nextjs.org/blog/next-9-1#public-directory-support
127+
128+
# public
129+
130+
# vuepress build output
131+
132+
.vuepress/dist
133+
134+
# vuepress v2.x temp and cache directory
135+
136+
.temp
137+
.cache
138+
139+
# Docusaurus cache and generated files
140+
141+
.docusaurus
142+
143+
# Serverless directories
144+
145+
.serverless/
146+
147+
# FuseBox cache
148+
149+
.fusebox/
150+
151+
# DynamoDB Local files
152+
153+
.dynamodb/
154+
155+
# TernJS port file
156+
157+
.tern-port
158+
159+
# Stores VSCode versions used for testing VSCode extensions
160+
161+
.vscode-test
162+
163+
# yarn v2
164+
165+
.yarn/cache
166+
.yarn/unplugged
167+
.yarn/build-state.yml
168+
.yarn/install-state.gz
169+
.pnp.\*
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# kysely-bun-worker
2+
3+
kysely dialect for bun:sqlite, run sql in worker
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"name": "kysely-bun-worker",
3+
"version": "0.3.8",
4+
"description": "kysely dialect for bun, running in worker",
5+
"author": {
6+
"name": "subframe7536",
7+
"email": "1667077010@qq.com"
8+
},
9+
"license": "MIT",
10+
"homepage": "https://github.com/subframe7536/kysely-sqlite-tools#readme",
11+
"repository": {
12+
"type": "git",
13+
"url": "git+https://github.com/subframe7536/kysely-sqlite-tools.git"
14+
},
15+
"bugs": "https://github.com/subframe7536/kysely-sqlite-tools/issues",
16+
"keywords": [
17+
"kysely",
18+
"dialect",
19+
"sql",
20+
"worker",
21+
"sqlite3"
22+
],
23+
"main": "./dist/index.js",
24+
"module": "./dist/index.mjs",
25+
"exports": {
26+
".": {
27+
"require": "./dist/index.js",
28+
"import": "./dist/index.mjs"
29+
}
30+
},
31+
"scripts": {
32+
"dev": "bun index.ts",
33+
"test": "bun test",
34+
"build": "tsup"
35+
},
36+
"devDependencies": {
37+
"bun-types": "latest"
38+
},
39+
"dependencies": {
40+
"mitt": "^3.0.1"
41+
}
42+
}

0 commit comments

Comments
 (0)