Skip to content

Commit e0f005a

Browse files
committed
update tap, clock-mock, build with tshy
This also removes the size tracking stuff, since it's not really providing enough utility for the maintenance overhead of having outdated deps that keep triggering audit warnings. close: #323
1 parent 7ea4716 commit e0f005a

39 files changed

+4428
-4903
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
build:
77
strategy:
88
matrix:
9-
node-version: [16.x, 18.x, 20.x]
9+
node-version: [16.x, 18.x, 20.x, 21.x]
1010
platform:
1111
- os: ubuntu-latest
1212
shell: bash

.github/workflows/size-limit.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1+
/.tap
12
/node_modules
2-
/.nyc_output
3-
/nyc_output
4-
/coverage
5-
/bundle
6-
/index.mjs
73
/dist

.tshy/build.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"rootDir": "../src",
5+
"target": "es2022",
6+
"module": "nodenext",
7+
"moduleResolution": "nodenext"
8+
}
9+
}

.tshy/commonjs.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"extends": "./build.json",
3+
"include": [
4+
"../src/**/*.ts",
5+
"../src/**/*.cts",
6+
"../src/**/*.tsx"
7+
],
8+
"exclude": [
9+
"../src/**/*.mts"
10+
],
11+
"compilerOptions": {
12+
"outDir": "../.tshy-build/commonjs"
13+
}
14+
}

.tshy/esm.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": "./build.json",
3+
"include": [
4+
"../src/**/*.ts",
5+
"../src/**/*.mts",
6+
"../src/**/*.tsx"
7+
],
8+
"exclude": [],
9+
"compilerOptions": {
10+
"outDir": "../.tshy-build/esm"
11+
}
12+
}

fixup.sh

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,12 @@
22

33
esbuild --minify \
44
--sourcemap \
5-
--bundle dist/cjs/index.js \
6-
--outfile=dist/cjs/index.min.js \
5+
--bundle dist/commonjs/index.js \
6+
--outfile=dist/commonjs/index.min.js \
77
--format=cjs
88

99
esbuild --minify \
1010
--sourcemap \
11-
--bundle dist/mjs/index.js \
12-
--outfile=dist/mjs/index.min.js \
11+
--bundle dist/esm/index.js \
12+
--outfile=dist/esm/index.min.js \
1313
--format=esm
14-
15-
cat >dist/cjs/package.json <<!EOF
16-
{
17-
"type": "commonjs"
18-
}
19-
!EOF
20-
21-
cat >dist/mjs/package.json <<!EOF
22-
{
23-
"type": "module"
24-
}
25-
!EOF

0 commit comments

Comments
 (0)