Commit graph

7 commits

Author SHA1 Message Date
saberzero1
fcc73d9fb9
build: bundle dependencies and ship pre-built dist 2026-04-27 21:38:39 +02:00
saberzero1
2117d4ace2
fix: add createRequire banner for CJS compat in ESM bundles
Bundled CJS dependencies (e.g. reading-time) use require() for Node
builtins like 'stream' and 'util'. In ESM output, the esbuild-generated
__require shim throws 'Dynamic require of X is not supported' because
there is no global require in ESM context.

Add platform: 'node' and a banner that injects createRequire from the
'module' builtin, providing a working require() function for the CJS
compatibility layer.
2026-03-17 20:34:33 +01:00
saberzero1
cc83c5b513
fix: bundle non-shared deps into dist to prevent runtime resolution failures
Move non-allowlisted packages from dependencies/peerDependencies to
devDependencies so tsup bundles them into dist/ instead of leaving
them as external imports that may not resolve at runtime.
2026-03-17 19:31:51 +01:00
saberzero1
e7904abba5
chore: add missing dist type declaration files
The build output .d.ts files were not committed, only the JS files.
Both are needed for consumers to import the package with type support.
2026-03-16 19:21:14 +01:00
saberzero1
05487abbe0
fix: use fetchData global for path-prefixed deployments
- Update types/globals.d.ts with centralized type declarations
- Use fetchData global instead of hardcoded /static/contentIndex.json
- Revert @quartz-community/types from file:../types to github:quartz-community/types
- Add .prettierignore, update .eslintrc.json with triple-slash-reference override
- Remove duplicate scripts.d.ts/styles.d.ts
2026-03-16 18:54:25 +01:00
saberzero1
44d6b56e3e
chore: update template 2026-03-16 14:21:52 +01:00
saberzero1
97414aaae2
chore: commit dist/ and remove prepare script
Pre-built output is now committed to the repository so that
Quartz can skip the build step during plugin installation.
The prepare script is removed to prevent redundant builds
when installing from npm/git.
2026-03-14 22:02:17 +01:00