create-packer 1.26.1 → 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.
Files changed (24) hide show
  1. package/bin/createTemp.js +1 -1
  2. package/package.json +1 -1
  3. package/template/cli/tsconfig.json +1 -0
  4. package/template/lib/react/tsconfig.json +1 -0
  5. package/template/lib/ts/tsconfig.json +1 -0
  6. package/template/web-app/next/tsconfig.json +19 -26
  7. package/template/web-app/react/domain/app/app.model.ts +2 -2
  8. package/template/web-app/react/package.json +1 -1
  9. package/template/web-app/react/tsconfig.json +3 -3
  10. package/template/web-app/react-webpack/domain/app/app.model.ts +2 -2
  11. package/template/web-app/react-webpack/package.json +1 -1
  12. package/template/web-app/react-webpack/tsconfig.json +2 -1
  13. package/template/web-app/svelte/tsconfig.json +1 -0
  14. package/template/web-extension/package.json +1 -1
  15. package/template/web-extension/tsconfig.json +3 -4
  16. package/template/workspace/nx/node_modules/.pnpm/minipass-fetch@3.0.3/node_modules/minipass-sized/.gitignore +22 -0
  17. package/template/workspace/nx/node_modules/.pnpm/minipass-sized@1.0.3/node_modules/minipass-sized/.gitignore +22 -0
  18. package/template/workspace/nx/node_modules/.pnpm/node_modules/minipass-sized/.gitignore +22 -0
  19. package/template/workspace/nx/node_modules/.pnpm/node_modules/npm-normalize-package-bin/.gitignore +24 -0
  20. package/template/workspace/nx/node_modules/.pnpm/npm-bundled@1.1.2/node_modules/npm-normalize-package-bin/.gitignore +24 -0
  21. package/template/workspace/nx/node_modules/.pnpm/npm-normalize-package-bin@1.0.1/node_modules/npm-normalize-package-bin/.gitignore +24 -0
  22. package/template/workspace/nx/node_modules/.pnpm/npm-packlist@5.1.1/node_modules/npm-normalize-package-bin/.gitignore +24 -0
  23. package/template/workspace/pnpm/packages/test/tsconfig.json +1 -0
  24. package/template/workspace/pnpm/tsconfig.json +16 -15
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.1",
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
  }
@@ -1,6 +1,6 @@
1
- import defineModel from 'define-zustand'
1
+ import { defineStore } from 'define-zustand'
2
2
 
3
- export const useApp = defineModel({
3
+ export const useApp = defineStore({
4
4
  state: () => ({}),
5
5
  getter: {},
6
6
  actions: () => ({})
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "1k-types": "1.1.2",
22
22
  "axios": "1.3.6",
23
- "define-zustand": "2.0.1",
23
+ "define-zustand": "3.1.0",
24
24
  "immer": "10.0.1",
25
25
  "lodash-es": "4.17.21",
26
26
  "qs": "6.11.2",
@@ -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
  }
@@ -1,6 +1,6 @@
1
- import defineModel from 'define-zustand'
1
+ import { defineStore } from 'define-zustand'
2
2
 
3
- export const useApp = defineModel({
3
+ export const useApp = defineStore({
4
4
  state: () => ({}),
5
5
  getter: {},
6
6
  actions: () => ({})
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "1k-types": "1.1.2",
23
23
  "axios": "1.5.0",
24
- "define-zustand": "2.0.1",
24
+ "define-zustand": "3.1.0",
25
25
  "immer": "10.0.2",
26
26
  "lodash-es": "4.17.21",
27
27
  "qs": "6.11.2",
@@ -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,
@@ -17,7 +17,7 @@
17
17
  "commit": "git add . && npm run cz"
18
18
  },
19
19
  "dependencies": {
20
- "define-zustand": "2.0.1",
20
+ "define-zustand": "3.1.0",
21
21
  "immer": "10.0.1",
22
22
  "ky": "1.1.3",
23
23
  "lodash-es": "4.17.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,
@@ -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
  }
@@ -0,0 +1,22 @@
1
+ # ignore most things, include some others
2
+ /*
3
+ /.*
4
+
5
+ !bin/
6
+ !lib/
7
+ !docs/
8
+ !package.json
9
+ !package-lock.json
10
+ !README.md
11
+ !CONTRIBUTING.md
12
+ !LICENSE
13
+ !CHANGELOG.md
14
+ !example/
15
+ !scripts/
16
+ !tap-snapshots/
17
+ !test/
18
+ !.travis.yml
19
+ !.gitignore
20
+ !.gitattributes
21
+ !coverage-map.js
22
+ !index.js
@@ -0,0 +1,22 @@
1
+ # ignore most things, include some others
2
+ /*
3
+ /.*
4
+
5
+ !bin/
6
+ !lib/
7
+ !docs/
8
+ !package.json
9
+ !package-lock.json
10
+ !README.md
11
+ !CONTRIBUTING.md
12
+ !LICENSE
13
+ !CHANGELOG.md
14
+ !example/
15
+ !scripts/
16
+ !tap-snapshots/
17
+ !test/
18
+ !.travis.yml
19
+ !.gitignore
20
+ !.gitattributes
21
+ !coverage-map.js
22
+ !index.js
@@ -0,0 +1,22 @@
1
+ # ignore most things, include some others
2
+ /*
3
+ /.*
4
+
5
+ !bin/
6
+ !lib/
7
+ !docs/
8
+ !package.json
9
+ !package-lock.json
10
+ !README.md
11
+ !CONTRIBUTING.md
12
+ !LICENSE
13
+ !CHANGELOG.md
14
+ !example/
15
+ !scripts/
16
+ !tap-snapshots/
17
+ !test/
18
+ !.travis.yml
19
+ !.gitignore
20
+ !.gitattributes
21
+ !coverage-map.js
22
+ !index.js
@@ -0,0 +1,24 @@
1
+ # ignore most things, include some others
2
+ /*
3
+ /.*
4
+
5
+ !bin/
6
+ !lib/
7
+ !docs/
8
+ !package.json
9
+ !package-lock.json
10
+ !README.md
11
+ !CONTRIBUTING.md
12
+ !LICENSE
13
+ !CHANGELOG.md
14
+ !example/
15
+ !scripts/
16
+ !tap-snapshots/
17
+ !test/
18
+ !.github/
19
+ !.travis.yml
20
+ !.gitignore
21
+ !.gitattributes
22
+ !coverage-map.js
23
+ !map.js
24
+ !index.js
@@ -0,0 +1,24 @@
1
+ # ignore most things, include some others
2
+ /*
3
+ /.*
4
+
5
+ !bin/
6
+ !lib/
7
+ !docs/
8
+ !package.json
9
+ !package-lock.json
10
+ !README.md
11
+ !CONTRIBUTING.md
12
+ !LICENSE
13
+ !CHANGELOG.md
14
+ !example/
15
+ !scripts/
16
+ !tap-snapshots/
17
+ !test/
18
+ !.github/
19
+ !.travis.yml
20
+ !.gitignore
21
+ !.gitattributes
22
+ !coverage-map.js
23
+ !map.js
24
+ !index.js
@@ -0,0 +1,24 @@
1
+ # ignore most things, include some others
2
+ /*
3
+ /.*
4
+
5
+ !bin/
6
+ !lib/
7
+ !docs/
8
+ !package.json
9
+ !package-lock.json
10
+ !README.md
11
+ !CONTRIBUTING.md
12
+ !LICENSE
13
+ !CHANGELOG.md
14
+ !example/
15
+ !scripts/
16
+ !tap-snapshots/
17
+ !test/
18
+ !.github/
19
+ !.travis.yml
20
+ !.gitignore
21
+ !.gitattributes
22
+ !coverage-map.js
23
+ !map.js
24
+ !index.js
@@ -0,0 +1,24 @@
1
+ # ignore most things, include some others
2
+ /*
3
+ /.*
4
+
5
+ !bin/
6
+ !lib/
7
+ !docs/
8
+ !package.json
9
+ !package-lock.json
10
+ !README.md
11
+ !CONTRIBUTING.md
12
+ !LICENSE
13
+ !CHANGELOG.md
14
+ !example/
15
+ !scripts/
16
+ !tap-snapshots/
17
+ !test/
18
+ !.github/
19
+ !.travis.yml
20
+ !.gitignore
21
+ !.gitattributes
22
+ !coverage-map.js
23
+ !map.js
24
+ !index.js
@@ -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
  }