create-packer 1.26.2 → 1.26.3

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/bin/createTemp.js CHANGED
@@ -38,7 +38,7 @@ async function createTemp(dirname) {
38
38
  }
39
39
  ]);
40
40
  let tempInfo = tempInfoList.find(o => o.name === answer.temp);
41
- if (tempInfo.children.length > 0) {
41
+ if (tempInfo?.children && tempInfo.children.length > 0) {
42
42
  answer = await inquirer.prompt([
43
43
  {
44
44
  type: 'list',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-packer",
3
- "version": "1.26.2",
3
+ "version": "1.26.3",
4
4
  "main": "index.js",
5
5
  "repository": "https://github.com/kevily/create-packer",
6
6
  "author": "1k <bug_zero@163.com>",
@@ -5,6 +5,7 @@
5
5
  "allowSyntheticDefaultImports": false,
6
6
  "resolveJsonModule": true,
7
7
  "allowJs": true,
8
+ "strictNullChecks": true,
8
9
  "target": "ESNext",
9
10
  "noImplicitAny": false,
10
11
  "moduleResolution": "node",
@@ -11,6 +11,7 @@
11
11
  "jsx": "react-jsx",
12
12
  "allowSyntheticDefaultImports": true,
13
13
  "allowJs": true,
14
+ "strictNullChecks": true,
14
15
  "target": "ESNext",
15
16
  "noImplicitAny": false,
16
17
  "skipLibCheck": true,
@@ -4,6 +4,7 @@
4
4
  "esModuleInterop": true,
5
5
  "allowSyntheticDefaultImports": true,
6
6
  "allowJs": true,
7
+ "strictNullChecks": true,
7
8
  "target": "ESNext",
8
9
  "noImplicitAny": false,
9
10
  "moduleResolution": "node",
@@ -1,28 +1,21 @@
1
1
  {
2
- "compilerOptions": {
3
- "target": "es5",
4
- "lib": ["dom", "dom.iterable", "esnext"],
5
- "allowJs": true,
6
- "skipLibCheck": true,
7
- "strict": true,
8
- "forceConsistentCasingInFileNames": true,
9
- "noEmit": true,
10
- "esModuleInterop": true,
11
- "module": "esnext",
12
- "moduleResolution": "node",
13
- "resolveJsonModule": true,
14
- "isolatedModules": true,
15
- "jsx": "preserve",
16
- "incremental": true,
17
- "plugins": [
18
- {
19
- "name": "next"
20
- }
21
- ],
22
- "paths": {
23
- "@/*": ["./*"]
24
- },
25
- },
26
- "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
27
- "exclude": ["node_modules"]
2
+ "extends": "./.svelte-kit/tsconfig.json",
3
+ "compilerOptions": {
4
+ "allowJs": true,
5
+ "strictNullChecks": true,
6
+ "checkJs": true,
7
+ "esModuleInterop": true,
8
+ "forceConsistentCasingInFileNames": true,
9
+ "resolveJsonModule": true,
10
+ "skipLibCheck": true,
11
+ "sourceMap": true,
12
+ "strict": true,
13
+ "paths": {
14
+ "@/*": ["./*"]
15
+ }
16
+ }
17
+ // Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
18
+ //
19
+ // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
20
+ // from the referenced tsconfig.json - TypeScript does not merge them in
28
21
  }
@@ -4,7 +4,8 @@
4
4
  "target": "ESNext",
5
5
  "useDefineForClassFields": true,
6
6
  "lib": ["DOM", "DOM.Iterable", "ESNext"],
7
- "allowJs": false,
7
+ "allowJs": true,
8
+ "strictNullChecks": true,
8
9
  "skipLibCheck": true,
9
10
  "esModuleInterop": false,
10
11
  "allowSyntheticDefaultImports": true,
@@ -22,6 +23,5 @@
22
23
  }
23
24
  },
24
25
  "include": ["**/*.tsx", "**/*.ts"],
25
- "exclude": ["scripts", "vite.config.ts"],
26
- "references": [{ "path": "./tsconfig.node.json" }]
26
+ "exclude": ["scripts"]
27
27
  }
@@ -4,7 +4,8 @@
4
4
  "target": "ESNext",
5
5
  "useDefineForClassFields": true,
6
6
  "lib": ["DOM", "DOM.Iterable", "ESNext"],
7
- "allowJs": false,
7
+ "allowJs": true,
8
+ "strictNullChecks": true,
8
9
  "skipLibCheck": true,
9
10
  "esModuleInterop": false,
10
11
  "allowSyntheticDefaultImports": true,
@@ -2,6 +2,7 @@
2
2
  "extends": "./.svelte-kit/tsconfig.json",
3
3
  "compilerOptions": {
4
4
  "allowJs": true,
5
+ "strictNullChecks": true,
5
6
  "checkJs": true,
6
7
  "esModuleInterop": true,
7
8
  "forceConsistentCasingInFileNames": true,
@@ -4,7 +4,8 @@
4
4
  "target": "ESNext",
5
5
  "useDefineForClassFields": true,
6
6
  "lib": ["DOM", "DOM.Iterable", "ESNext"],
7
- "allowJs": false,
7
+ "allowJs": true,
8
+ "strictNullChecks": true,
8
9
  "skipLibCheck": true,
9
10
  "esModuleInterop": false,
10
11
  "allowSyntheticDefaultImports": true,
@@ -15,7 +16,6 @@
15
16
  "moduleResolution": "Node",
16
17
  "resolveJsonModule": true,
17
18
  "isolatedModules": true,
18
- "noImplicitAny": false,
19
19
  "noEmit": true,
20
20
  "jsx": "react-jsx",
21
21
  "paths": {
@@ -23,6 +23,5 @@
23
23
  }
24
24
  },
25
25
  "include": ["**/*.tsx", "**/*.ts"],
26
- "exclude": ["scripts", "vite.config.ts"],
27
- "references": [{ "path": "./tsconfig.node.json" }]
26
+ "exclude": ["scripts"]
28
27
  }
@@ -4,6 +4,7 @@
4
4
  "esModuleInterop": true,
5
5
  "allowSyntheticDefaultImports": true,
6
6
  "allowJs": true,
7
+ "strictNullChecks": true,
7
8
  "target": "ESNext",
8
9
  "noImplicitAny": false,
9
10
  "moduleResolution": "node",
@@ -1,17 +1,18 @@
1
1
  {
2
- "compilerOptions": {
3
- "module": "CommonJS",
4
- "esModuleInterop": true,
5
- "allowSyntheticDefaultImports": true,
6
- "allowJs": true,
7
- "target": "ESNext",
8
- "noImplicitAny": false,
9
- "moduleResolution": "node",
10
- "sourceMap": false,
11
- "declaration": true,
12
- "outDir": "lib",
13
- "baseUrl": "."
14
- },
15
- "include": ["tasks/**/*"],
16
- "exclude": ["node_modules/**/*"],
2
+ "compilerOptions": {
3
+ "module": "CommonJS",
4
+ "esModuleInterop": true,
5
+ "allowSyntheticDefaultImports": true,
6
+ "allowJs": true,
7
+ "strictNullChecks": true,
8
+ "target": "ESNext",
9
+ "noImplicitAny": false,
10
+ "moduleResolution": "node",
11
+ "sourceMap": false,
12
+ "declaration": true,
13
+ "outDir": "lib",
14
+ "baseUrl": "."
15
+ },
16
+ "include": ["tasks/**/*"],
17
+ "exclude": ["node_modules/**/*"]
17
18
  }