Skip to content

Commit c9bda69

Browse files
committed
chore: refactor into thin measures
1 parent ba5643b commit c9bda69

70 files changed

Lines changed: 366 additions & 9700 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/anya-ui/build.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import { build } from 'esbuild';
22

33
await build({
4-
entryPoints: ['src/index.ts'],
5-
outfile: 'dist/index.js',
4+
entryPoints: ['src/index.ts', 'src/measure.ts'],
5+
outdir: 'dist',
66
bundle: true,
77
format: 'esm',
88
platform: 'browser',
99
target: 'es2022',
10+
splitting: true,
1011
external: ['yaml', 'marked'],
1112
sourcemap: false,
1213
minify: false,

packages/anya-ui/package.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"node": ">=20"
2626
},
2727
"files": [
28-
"dist/index.js",
29-
"dist/index.d.ts",
28+
"dist/*.js",
29+
"dist/*.d.ts",
3030
"src/anya.css",
3131
"README.md",
3232
"LICENSE*"
@@ -41,10 +41,16 @@
4141
"default": "./dist/index.js"
4242
}
4343
},
44+
"./measure": {
45+
"import": {
46+
"types": "./dist/measure.d.ts",
47+
"default": "./dist/measure.js"
48+
}
49+
},
4450
"./package.json": "./package.json"
4551
},
4652
"scripts": {
47-
"build": "node build.mjs && npx dts-bundle-generator -o dist/index.d.ts src/index.ts --project tsconfig.json --no-banner",
53+
"build": "node build.mjs && npx dts-bundle-generator -o dist/index.d.ts src/index.ts --project tsconfig.json --no-banner && npx dts-bundle-generator -o dist/measure.d.ts src/measure.ts --project tsconfig.json --no-banner",
4854
"clean": "rm -rf dist",
4955
"dev": "tsc -p tsconfig.json --watch",
5056
"lint": "tsc -p tsconfig.json --noEmit",
@@ -63,7 +69,6 @@
6369
"esbuild": "^0.28.0",
6470
"jsdom": "^26.0.0",
6571
"typescript": "^5.7.0",
66-
"vitest": "^4.0.18",
67-
"zod": "^3.24.0"
72+
"vitest": "^4.0.18"
6873
}
6974
}

packages/anya-ui/src/core/id.ts

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

packages/anya-ui/src/core/index.ts

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

packages/anya-ui/src/core/logging.ts

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

0 commit comments

Comments
 (0)