create-grist-widget 0.3.24 → 0.3.25

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-grist-widget",
3
- "version": "0.3.24",
3
+ "version": "0.3.25",
4
4
  "description": "Scaffold a new Grist custom widget from the grist-widget-sdk Vite template",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -17,7 +17,7 @@
17
17
  "@tailwindcss/vite": "^4.3.3",
18
18
  "class-variance-authority": "^0.7.1",
19
19
  "clsx": "^2.1.1",
20
- "grist-widget-sdk": "^0.3.20",
20
+ "grist-widget-sdk": "^0.3.25",
21
21
  "lucide-react": "^1.61.0",
22
22
  "radix-ui": "^1.8.1",
23
23
  "react": "^19.3.1",
@@ -1,28 +1,13 @@
1
1
  {
2
+ // Compiler settings come from grist-widget-sdk and update with it. This
3
+ // file keeps what is specific to this widget: its files, paths and types.
4
+ "extends": "grist-widget-sdk/tsconfig/app.json",
2
5
  "compilerOptions": {
6
+ // Also set in the base. Repeated so that a missing base (a grist-widget-sdk
7
+ // too old to ship it) fails the typecheck without writing .js files into src/.
8
+ "noEmit": true,
3
9
  "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
4
- "target": "ES2022",
5
- "useDefineForClassFields": true,
6
- "lib": ["ES2022", "DOM", "DOM.Iterable"],
7
- "module": "ESNext",
8
10
  "types": ["vite/client"],
9
- "skipLibCheck": true,
10
-
11
- /* Bundler mode */
12
- "moduleResolution": "bundler",
13
- "allowImportingTsExtensions": true,
14
- "verbatimModuleSyntax": true,
15
- "moduleDetection": "force",
16
- "noEmit": true,
17
- "jsx": "react-jsx",
18
-
19
- /* Linting */
20
- "strict": true,
21
- "noUnusedLocals": true,
22
- "noUnusedParameters": true,
23
- "erasableSyntaxOnly": true,
24
- "noFallthroughCasesInSwitch": true,
25
- "noUncheckedSideEffectImports": true,
26
11
  "paths": {
27
12
  "@/*": ["./src/*"]
28
13
  }
@@ -1,26 +1,13 @@
1
1
  {
2
+ // Compiler settings come from grist-widget-sdk and update with it. This
3
+ // file keeps what is specific to this widget: its files and types.
4
+ "extends": "grist-widget-sdk/tsconfig/node.json",
2
5
  "compilerOptions": {
3
- "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
4
- "target": "ES2023",
5
- "lib": ["ES2023"],
6
- "module": "ESNext",
7
- "types": ["node"],
8
- "skipLibCheck": true,
9
-
10
- /* Bundler mode */
11
- "moduleResolution": "bundler",
12
- "allowImportingTsExtensions": true,
13
- "verbatimModuleSyntax": true,
14
- "moduleDetection": "force",
6
+ // Also set in the base. Repeated so that a missing base (a grist-widget-sdk
7
+ // too old to ship it) fails the typecheck without writing a .js file.
15
8
  "noEmit": true,
16
-
17
- /* Linting */
18
- "strict": true,
19
- "noUnusedLocals": true,
20
- "noUnusedParameters": true,
21
- "erasableSyntaxOnly": true,
22
- "noFallthroughCasesInSwitch": true,
23
- "noUncheckedSideEffectImports": true
9
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
10
+ "types": ["node"]
24
11
  },
25
12
  "include": ["vite.config.ts"]
26
13
  }