Consumers installing via 'git+http://.../webapp-scaffold.git#<tag>' hit Node's ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING because .ts files under node_modules can't be loaded by vite.config.ts loaders / node's default loader. Add tsconfig.json + 'prepare: tsc' (runs on git install). Emit .js + .d.ts into dist/. package.json exports point at dist/; .ts remains in src/ for direct-source consumers (e.g. monorepo setups). 'dist/' is gitignored — it's a build artifact, populated at install time. Version bump to 0.3.1 since this is a patch on the already-released 0.3.0 ABI (no API changes, just packaging). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
4 lines
36 B
Text
4 lines
36 B
Text
node_modules/
|
|
dist/
|
|
*.tgz
|
|
.DS_Store
|