Skip to content

Commit

Permalink
update tap, clock-mock, build with tshy
Browse files Browse the repository at this point in the history
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
  • Loading branch information
isaacs committed Nov 10, 2023
1 parent 7ea4716 commit e0f005a
Show file tree
Hide file tree
Showing 39 changed files with 4,428 additions and 4,903 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
build:
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
node-version: [16.x, 18.x, 20.x, 21.x]
platform:
- os: ubuntu-latest
shell: bash
Expand Down
19 changes: 0 additions & 19 deletions .github/workflows/size-limit.yml

This file was deleted.

6 changes: 1 addition & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
/.tap
/node_modules
/.nyc_output
/nyc_output
/coverage
/bundle
/index.mjs
/dist
9 changes: 9 additions & 0 deletions .tshy/build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"rootDir": "../src",
"target": "es2022",
"module": "nodenext",
"moduleResolution": "nodenext"
}
}
14 changes: 14 additions & 0 deletions .tshy/commonjs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": "./build.json",
"include": [
"../src/**/*.ts",
"../src/**/*.cts",
"../src/**/*.tsx"
],
"exclude": [
"../src/**/*.mts"
],
"compilerOptions": {
"outDir": "../.tshy-build/commonjs"
}
}
12 changes: 12 additions & 0 deletions .tshy/esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "./build.json",
"include": [
"../src/**/*.ts",
"../src/**/*.mts",
"../src/**/*.tsx"
],
"exclude": [],
"compilerOptions": {
"outDir": "../.tshy-build/esm"
}
}
20 changes: 4 additions & 16 deletions fixup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,12 @@

esbuild --minify \
--sourcemap \
--bundle dist/cjs/index.js \
--outfile=dist/cjs/index.min.js \
--bundle dist/commonjs/index.js \
--outfile=dist/commonjs/index.min.js \
--format=cjs

esbuild --minify \
--sourcemap \
--bundle dist/mjs/index.js \
--outfile=dist/mjs/index.min.js \
--bundle dist/esm/index.js \
--outfile=dist/esm/index.min.js \
--format=esm

cat >dist/cjs/package.json <<!EOF
{
"type": "commonjs"
}
!EOF

cat >dist/mjs/package.json <<!EOF
{
"type": "module"
}
!EOF
Loading

0 comments on commit e0f005a

Please sign in to comment.