Skip to content

Commit

Permalink
Types
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Sep 28, 2023
1 parent bb108f6 commit a85e16d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions index.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
/// <reference types="bun-types" />
/// <reference lib="dom" />
import assert from 'node:assert/strict';
import {test} from 'bun:test';
import stripIndent from 'strip-indent';
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@
"distribution/index.d.ts"
],
"scripts": {
"bun:test": "bun test",
"build": "run-p build:*",
"build:vite": "vite build",
"build:typescript": "tsc --declaration --emitDeclarationOnly",
"demo:build": "vite build demo",
"demo:test": "svelte-check",
"demo:watch": "vite preview demo & vite build demo --watch # vite serve isn't real",
"prepack": "npm run build",
"test": "run-p build bun:test xo",
"test": "run-p build test:unit xo",
"test:unit": "bun test",
"watch": "run-p watch:typescript demo:watch # vite watch doesn’t generate the lib, so just use the demo",
"watch:typescript": "tsc --watch --noEmit",
"watch:bun:test": "run-p 'bun:test -- --watch' 'watch:typescript -- --watch'",
"watch:test:unit": "run-p 'test:unit -- --watch' 'watch:typescript -- --watch'",
"xo": "xo"
},
"xo": {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"include": [
"index.ts",
"test.ts",
"index.test.ts",
"collector.ts"
]
}

0 comments on commit a85e16d

Please sign in to comment.