Skip to content

Commit bbb1f4f

Browse files
committed
fix: dnt config
1 parent d0bc1b4 commit bbb1f4f

File tree

2 files changed

+36
-24
lines changed

2 files changed

+36
-24
lines changed

README.md

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,32 @@
11
<div align="center">
2+
23
<h1>use-haptic 📳</h1>
34

4-
<p>A convenient React hook to trigger haptic feedback anywhere in your application</p>
5-
6-
<p>
7-
<a href="https://jsr.io/@posaune0423/use-haptic">
8-
<img src="https://jsr.io/badges/@posaune0423/use-haptic" alt="" />
9-
</a>
10-
<a href="https://jsr.io/@posaune0423/use-haptic">
11-
<img src="https://jsr.io/badges/@posaune0423/use-haptic/score" alt="" />
12-
</a>
13-
<a href="https://github.com/posaune0423/use-haptic/actions/workflows/ci.yml">
14-
<img alt="CI" src="https://github.com/posaune0423/use-haptic/actions/workflows/ci.yml/badge.svg" />
15-
</a>
16-
<a href="https://www.npmjs.com/package/use-haptic">
17-
<img src="https://img.shields.io/npm/v/use-haptic.svg" alt="npm package" />
18-
</a>
19-
<a href="https://npmjs.org/package/use-haptic">
20-
<img alt="downloads" src="https://img.shields.io/npm/d18m/use-haptic" />
21-
</a>
22-
<a href="https://npmjs.org/package/use-haptic">
23-
<img alt="types included" src="https://badgen.net/npm/types/use-haptic" />
24-
</a>
5+
<p>A convenient React hook to trigger haptic feedback anywhere in your application</p>
6+
7+
<p>
8+
<a href="https://jsr.io/@posaune0423/use-haptic">
9+
<img src="https://jsr.io/badges/@posaune0423/use-haptic" alt="" />
10+
</a>
11+
<a href="https://jsr.io/@posaune0423/use-haptic">
12+
<img src="https://jsr.io/badges/@posaune0423/use-haptic/score" alt="" />
13+
</a>
14+
<a href="https://github.com/posaune0423/use-haptic/actions/workflows/ci.yml">
15+
<img alt="CI" src="https://github.com/posaune0423/use-haptic/actions/workflows/ci.yml/badge.svg" />
16+
</a>
17+
<a href="https://www.npmjs.com/package/use-haptic">
18+
<img src="https://img.shields.io/npm/v/use-haptic.svg" alt="npm package" />
19+
</a>
20+
<a href="https://npmjs.org/package/use-haptic">
21+
<img alt="downloads" src="https://img.shields.io/npm/d18m/use-haptic" />
22+
</a>
23+
<a href="https://npmjs.org/package/use-haptic">
24+
<img alt="types included" src="https://badgen.net/npm/types/use-haptic" />
25+
</a>
2526
</p>
2627

27-
<h2>
28-
<a href="https://use-haptic.deno.dev/">Try the Demo!</a>
28+
<h2>
29+
<a href="https://use-haptic.deno.dev/">Try the Demo!</a>
2930
</h2>
3031
</div>
3132

scripts/build_npm.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// ex. scripts/build_npm.ts
21
import { build, emptyDir } from "@deno/dnt";
32

43
await emptyDir("./npm");
@@ -10,6 +9,12 @@ await build({
109
// see JS docs for overview and more options
1110
deno: true,
1211
},
12+
typeCheck: "both",
13+
test: false,
14+
compilerOptions: {
15+
target: "ES2020",
16+
lib: ["ES2020", "DOM"]
17+
},
1318
package: {
1419
// package.json properties
1520
name: "use-haptic",
@@ -24,6 +29,12 @@ await build({
2429
bugs: {
2530
url: "https://github.com/posaune0423/use-haptic/issues",
2631
},
32+
dependencies: {
33+
"react": "^18.0.0"
34+
},
35+
devDependencies: {
36+
"@types/react": "^18.0.0"
37+
}
2738
},
2839
postBuild() {
2940
// steps to run after building and before running the tests

0 commit comments

Comments
 (0)