create-kerf-component 5.0.0-beta.1 → 5.0.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/template/package.json +2 -2
- package/template/tsup.config.ts +10 -1
package/package.json
CHANGED
package/template/package.json
CHANGED
package/template/tsup.config.ts
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
import { defineConfig } from 'tsup';
|
|
2
|
+
import ts from 'typescript';
|
|
3
|
+
|
|
4
|
+
// tsup injects `baseUrl` into declaration builds. TypeScript 6 reports that
|
|
5
|
+
// option as a TS 7 deprecation error, while TypeScript 5 rejects the future
|
|
6
|
+
// "6.0" threshold itself. Keep the workaround local to tsup and only enable it
|
|
7
|
+
// for the compiler generation that needs it.
|
|
8
|
+
const dtsCompilerOptions = ts.versionMajorMinor.startsWith('6.')
|
|
9
|
+
? { ignoreDeprecations: '6.0' }
|
|
10
|
+
: {};
|
|
2
11
|
|
|
3
12
|
// One entry per `exports` subpath. tsup emits ESM + `.d.ts` for each.
|
|
4
13
|
export default defineConfig({
|
|
5
14
|
entry: ['src/index.ts', 'src/counter.tsx'],
|
|
6
15
|
format: ['esm'],
|
|
7
|
-
dts:
|
|
16
|
+
dts: { compilerOptions: dtsCompilerOptions },
|
|
8
17
|
clean: true,
|
|
9
18
|
// THE hard rule: kerfjs must NEVER be bundled. A component returns `SafeHtml`
|
|
10
19
|
// and reads signals; both rely on the consumer and this package sharing ONE
|