create-kerf-component 5.0.0-beta.1 → 5.0.0-beta.10

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-kerf-component",
3
- "version": "5.0.0-beta.1",
3
+ "version": "5.0.0-beta.10",
4
4
  "description": "Scaffold a publishable kerf component package that already follows kerf's hard packaging rules.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -25,10 +25,10 @@
25
25
  "prepublishOnly": "npm run build"
26
26
  },
27
27
  "peerDependencies": {
28
- "kerfjs": "^4.0.0"
28
+ "kerfjs": "^5.0.0-0"
29
29
  },
30
30
  "devDependencies": {
31
- "kerfjs": "^4.4.1",
31
+ "kerfjs": "^5.0.0-beta.10",
32
32
  "tsup": "^8",
33
33
  "typescript": "^5 || ^6"
34
34
  }
@@ -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: true,
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