create-packer 1.41.6 → 1.41.7

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-packer",
3
- "version": "1.41.6",
3
+ "version": "1.41.7",
4
4
  "main": "index.js",
5
5
  "repository": "https://github.com/kevily/create-packer",
6
6
  "author": "1k <bug_zero@163.com>",
@@ -33,6 +33,7 @@
33
33
  "@types/node": "16.4.7",
34
34
  "commitizen": "4.3.0",
35
35
  "eslint": "9.17.0",
36
+ "globals": "15.12.0",
36
37
  "prettier": "3.2.5",
37
38
  "rimraf": "3.0.2",
38
39
  "typescript": "5.7.2",
@@ -1 +1 @@
1
- export { default as component } from "../../../../../../../node_modules/.pnpm/@sveltejs+kit@2.15.0_@sveltejs+vite-plugin-svelte@5.0.3_svelte@5.16.0_vite@6.0.7_@types+node@_dun526chfqq2tdeu4ndukklh5a/node_modules/@sveltejs/kit/src/runtime/components/svelte-5/layout.svelte";
1
+ export { default as component } from "../../../../../../../node_modules/.pnpm/@sveltejs+kit@2.15.0_@sveltejs+vite-plugin-svelte@5.0.3_svelte@5.16.0_vite@6.0.7_@types+node@_xdczk5zhuqhlile6flpchfvz6e/node_modules/@sveltejs/kit/src/runtime/components/svelte-5/layout.svelte";
@@ -1 +1 @@
1
- export { default as component } from "../../../../../../../node_modules/.pnpm/@sveltejs+kit@2.15.0_@sveltejs+vite-plugin-svelte@5.0.3_svelte@5.16.0_vite@6.0.7_@types+node@_dun526chfqq2tdeu4ndukklh5a/node_modules/@sveltejs/kit/src/runtime/components/svelte-5/error.svelte";
1
+ export { default as component } from "../../../../../../../node_modules/.pnpm/@sveltejs+kit@2.15.0_@sveltejs+vite-plugin-svelte@5.0.3_svelte@5.16.0_vite@6.0.7_@types+node@_xdczk5zhuqhlile6flpchfvz6e/node_modules/@sveltejs/kit/src/runtime/components/svelte-5/error.svelte";
@@ -1,49 +1,49 @@
1
-
2
- import root from '../root.js';
3
- import { set_building, set_prerendering } from '__sveltekit/environment';
4
- import { set_assets } from '__sveltekit/paths';
5
- import { set_manifest, set_read_implementation } from '__sveltekit/server';
6
- import { set_private_env, set_public_env, set_safe_public_env } from '../../../../../../node_modules/.pnpm/@sveltejs+kit@2.15.0_@sveltejs+vite-plugin-svelte@5.0.3_svelte@5.16.0_vite@6.0.7_@types+node@_dun526chfqq2tdeu4ndukklh5a/node_modules/@sveltejs/kit/src/runtime/shared-server.js';
7
-
8
- export const options = {
9
- app_dir: "_app",
10
- app_template_contains_nonce: false,
11
- csp: {"mode":"auto","directives":{"upgrade-insecure-requests":false,"block-all-mixed-content":false},"reportOnly":{"upgrade-insecure-requests":false,"block-all-mixed-content":false}},
12
- csrf_check_origin: true,
13
- embedded: false,
14
- env_public_prefix: 'PUBLIC_',
15
- env_private_prefix: '',
16
- hash_routing: false,
17
- hooks: null, // added lazily, via `get_hooks`
18
- preload_strategy: "modulepreload",
19
- root,
20
- service_worker: false,
21
- templates: {
22
- app: ({ head, body, assets, nonce, env }) => "<!doctype html>\r\n<html lang=\"en\">\r\n\t<head>\r\n\t\t<meta charset=\"utf-8\" />\r\n\t\t<link rel=\"icon\" href=\"" + assets + "/favicon.png\" />\r\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\r\n\t\t" + head + "\r\n\t</head>\r\n\t<body data-sveltekit-preload-data=\"hover\">\r\n\t\t<div style=\"display: contents\">" + body + "</div>\r\n\t</body>\r\n</html>\r\n",
23
- error: ({ status, message }) => "<!doctype html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<title>" + message + "</title>\n\n\t\t<style>\n\t\t\tbody {\n\t\t\t\t--bg: white;\n\t\t\t\t--fg: #222;\n\t\t\t\t--divider: #ccc;\n\t\t\t\tbackground: var(--bg);\n\t\t\t\tcolor: var(--fg);\n\t\t\t\tfont-family:\n\t\t\t\t\tsystem-ui,\n\t\t\t\t\t-apple-system,\n\t\t\t\t\tBlinkMacSystemFont,\n\t\t\t\t\t'Segoe UI',\n\t\t\t\t\tRoboto,\n\t\t\t\t\tOxygen,\n\t\t\t\t\tUbuntu,\n\t\t\t\t\tCantarell,\n\t\t\t\t\t'Open Sans',\n\t\t\t\t\t'Helvetica Neue',\n\t\t\t\t\tsans-serif;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t.error {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tmax-width: 32rem;\n\t\t\t\tmargin: 0 1rem;\n\t\t\t}\n\n\t\t\t.status {\n\t\t\t\tfont-weight: 200;\n\t\t\t\tfont-size: 3rem;\n\t\t\t\tline-height: 1;\n\t\t\t\tposition: relative;\n\t\t\t\ttop: -0.05rem;\n\t\t\t}\n\n\t\t\t.message {\n\t\t\t\tborder-left: 1px solid var(--divider);\n\t\t\t\tpadding: 0 0 0 1rem;\n\t\t\t\tmargin: 0 0 0 1rem;\n\t\t\t\tmin-height: 2.5rem;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t}\n\n\t\t\t.message h1 {\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-size: 1em;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t@media (prefers-color-scheme: dark) {\n\t\t\t\tbody {\n\t\t\t\t\t--bg: #222;\n\t\t\t\t\t--fg: #ddd;\n\t\t\t\t\t--divider: #666;\n\t\t\t\t}\n\t\t\t}\n\t\t</style>\n\t</head>\n\t<body>\n\t\t<div class=\"error\">\n\t\t\t<span class=\"status\">" + status + "</span>\n\t\t\t<div class=\"message\">\n\t\t\t\t<h1>" + message + "</h1>\n\t\t\t</div>\n\t\t</div>\n\t</body>\n</html>\n"
24
- },
25
- version_hash: "1au0b5n"
26
- };
27
-
28
- export async function get_hooks() {
29
- let handle;
30
- let handleFetch;
31
- let handleError;
32
- let init;
33
-
34
-
35
- let reroute;
36
- let transport;
37
-
38
-
39
- return {
40
- handle,
41
- handleFetch,
42
- handleError,
43
- init,
44
- reroute,
45
- transport
46
- };
47
- }
48
-
49
- export { set_assets, set_building, set_manifest, set_prerendering, set_private_env, set_public_env, set_read_implementation, set_safe_public_env };
1
+
2
+ import root from '../root.js';
3
+ import { set_building, set_prerendering } from '__sveltekit/environment';
4
+ import { set_assets } from '__sveltekit/paths';
5
+ import { set_manifest, set_read_implementation } from '__sveltekit/server';
6
+ import { set_private_env, set_public_env, set_safe_public_env } from '../../../../../../node_modules/.pnpm/@sveltejs+kit@2.15.0_@sveltejs+vite-plugin-svelte@5.0.3_svelte@5.16.0_vite@6.0.7_@types+node@_xdczk5zhuqhlile6flpchfvz6e/node_modules/@sveltejs/kit/src/runtime/shared-server.js';
7
+
8
+ export const options = {
9
+ app_dir: "_app",
10
+ app_template_contains_nonce: false,
11
+ csp: {"mode":"auto","directives":{"upgrade-insecure-requests":false,"block-all-mixed-content":false},"reportOnly":{"upgrade-insecure-requests":false,"block-all-mixed-content":false}},
12
+ csrf_check_origin: true,
13
+ embedded: false,
14
+ env_public_prefix: 'PUBLIC_',
15
+ env_private_prefix: '',
16
+ hash_routing: false,
17
+ hooks: null, // added lazily, via `get_hooks`
18
+ preload_strategy: "modulepreload",
19
+ root,
20
+ service_worker: false,
21
+ templates: {
22
+ app: ({ head, body, assets, nonce, env }) => "<!doctype html>\r\n<html lang=\"en\">\r\n\t<head>\r\n\t\t<meta charset=\"utf-8\" />\r\n\t\t<link rel=\"icon\" href=\"" + assets + "/favicon.png\" />\r\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\r\n\t\t" + head + "\r\n\t</head>\r\n\t<body data-sveltekit-preload-data=\"hover\">\r\n\t\t<div style=\"display: contents\">" + body + "</div>\r\n\t</body>\r\n</html>\r\n",
23
+ error: ({ status, message }) => "<!doctype html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<title>" + message + "</title>\n\n\t\t<style>\n\t\t\tbody {\n\t\t\t\t--bg: white;\n\t\t\t\t--fg: #222;\n\t\t\t\t--divider: #ccc;\n\t\t\t\tbackground: var(--bg);\n\t\t\t\tcolor: var(--fg);\n\t\t\t\tfont-family:\n\t\t\t\t\tsystem-ui,\n\t\t\t\t\t-apple-system,\n\t\t\t\t\tBlinkMacSystemFont,\n\t\t\t\t\t'Segoe UI',\n\t\t\t\t\tRoboto,\n\t\t\t\t\tOxygen,\n\t\t\t\t\tUbuntu,\n\t\t\t\t\tCantarell,\n\t\t\t\t\t'Open Sans',\n\t\t\t\t\t'Helvetica Neue',\n\t\t\t\t\tsans-serif;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t.error {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tmax-width: 32rem;\n\t\t\t\tmargin: 0 1rem;\n\t\t\t}\n\n\t\t\t.status {\n\t\t\t\tfont-weight: 200;\n\t\t\t\tfont-size: 3rem;\n\t\t\t\tline-height: 1;\n\t\t\t\tposition: relative;\n\t\t\t\ttop: -0.05rem;\n\t\t\t}\n\n\t\t\t.message {\n\t\t\t\tborder-left: 1px solid var(--divider);\n\t\t\t\tpadding: 0 0 0 1rem;\n\t\t\t\tmargin: 0 0 0 1rem;\n\t\t\t\tmin-height: 2.5rem;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t}\n\n\t\t\t.message h1 {\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-size: 1em;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t@media (prefers-color-scheme: dark) {\n\t\t\t\tbody {\n\t\t\t\t\t--bg: #222;\n\t\t\t\t\t--fg: #ddd;\n\t\t\t\t\t--divider: #666;\n\t\t\t\t}\n\t\t\t}\n\t\t</style>\n\t</head>\n\t<body>\n\t\t<div class=\"error\">\n\t\t\t<span class=\"status\">" + status + "</span>\n\t\t\t<div class=\"message\">\n\t\t\t\t<h1>" + message + "</h1>\n\t\t\t</div>\n\t\t</div>\n\t</body>\n</html>\n"
24
+ },
25
+ version_hash: "65cfhv"
26
+ };
27
+
28
+ export async function get_hooks() {
29
+ let handle;
30
+ let handleFetch;
31
+ let handleError;
32
+ let init;
33
+
34
+
35
+ let reroute;
36
+ let transport;
37
+
38
+
39
+ return {
40
+ handle,
41
+ handleFetch,
42
+ handleError,
43
+ init,
44
+ reroute,
45
+ transport
46
+ };
47
+ }
48
+
49
+ export { set_assets, set_building, set_manifest, set_prerendering, set_private_env, set_public_env, set_read_implementation, set_safe_public_env };
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "paths": {
4
+ "@": [
5
+ "../src"
6
+ ],
7
+ "@/*": [
8
+ "../src/*"
9
+ ],
4
10
  "$lib": [
5
11
  "../src/lib"
6
12
  ],
@@ -1,95 +1,88 @@
1
- import eslint from '@eslint/js'
2
- import globals from 'globals'
3
- import tseslint from 'typescript-eslint'
4
- import importPlugin from 'eslint-plugin-import'
5
- import eslintPluginSvelte from 'eslint-plugin-svelte'
6
- import svelte from 'eslint-plugin-svelte';
7
-
8
- const scriptExtensions = ['js', 'jsx', 'mjs', 'cjs', 'ts', 'tsx']
9
- const files = [...scriptExtensions.map(ext => `**/*.${ext}`), '**/*.svelte']
10
-
11
- export default tseslint.config([
12
- {
13
- ignores: ['**/node_modules/', '**/dist/', '**/.history/', '**/.vscode/', 'vite.config.ts.*']
14
- },
15
- eslint.configs.recommended,
16
- importPlugin.flatConfigs.recommended,
17
- tseslint.configs.recommended,
18
- eslintPluginSvelte.configs.recommended,
19
- ...svelte.configs['flat/recommended'],
20
- ...svelte.configs['flat/prettier'],
21
- {
22
- files,
23
- languageOptions: {
24
- ecmaVersion: 2018,
25
- sourceType: 'module',
26
- globals: {
27
- ...globals.browser,
28
- ...globals.node
29
- }
30
- },
31
- settings: {
32
- 'import/resolver': {
33
- typescript: true,
34
- node: true
35
- }
36
- },
37
- rules: {
38
- 'import/export': 'off',
39
- 'import/namespace': 'off',
40
- 'import/default': 'off',
41
- 'import/no-named-as-default-member': 'off',
42
- 'import/no-named-as-default': 'off',
43
- 'import/order': [
44
- 'error',
45
- {
46
- groups: [
47
- 'builtin',
48
- 'external',
49
- 'internal',
50
- 'parent',
51
- 'sibling',
52
- 'index',
53
- 'object',
54
- 'type'
55
- ],
56
- pathGroups: [{ pattern: 'svelte', group: 'external', position: 'before' }],
57
- pathGroupsExcludedImportTypes: ['svelte']
58
- }
59
- ],
60
- 'no-case-declarations': 'off',
61
- '@typescript-eslint/no-unused-expressions': 'off',
62
- '@typescript-eslint/no-empty-object-type': 'off',
63
- '@typescript-eslint/no-var-requires': 0,
64
- '@typescript-eslint/explicit-function-return-type': 'off',
65
- '@typescript-eslint/no-explicit-any': 0,
66
- '@typescript-eslint/no-non-null-assertion': 'off',
67
- '@typescript-eslint/no-inferrable-types': [
68
- 'warn',
69
- {
70
- ignoreParameters: true
71
- }
72
- ],
73
- '@typescript-eslint/no-unused-vars': [
74
- 'warn',
75
- {
76
- argsIgnorePattern: '^_'
77
- }
78
- ],
79
- '@typescript-eslint/member-delimiter-style': 0,
80
- '@typescript-eslint/class-name-casing': 0,
81
- '@typescript-eslint/explicit-module-boundary-types': 'off',
82
- '@typescript-eslint/ban-ts-comment': 'off',
83
- '@typescript-eslint/no-empty-interface': 'off',
84
- 'no-constant-condition': 'off'
85
- }
86
- },
87
- {
88
- files: ['**/*.svelte'],
89
- languageOptions: {
90
- parserOptions: {
91
- parser: ts.parser
92
- }
93
- }
94
- }
95
- ])
1
+ import eslint from '@eslint/js'
2
+ import globals from 'globals'
3
+ import tseslint from 'typescript-eslint'
4
+ import importPlugin from 'eslint-plugin-import'
5
+ import svelte from 'eslint-plugin-svelte'
6
+
7
+ const scriptExtensions = ['js', 'jsx', 'mjs', 'cjs', 'ts', 'tsx']
8
+ const files = [...scriptExtensions.map(ext => `**/*.${ext}`), '**/*.svelte']
9
+
10
+ export default tseslint.config([
11
+ {
12
+ ignores: ['**/node_modules/', '**/dist/', '**/.history/', '**/.vscode/', 'vite.config.ts.*']
13
+ },
14
+ eslint.configs.recommended,
15
+ importPlugin.flatConfigs.recommended,
16
+ tseslint.configs.recommended,
17
+ ...svelte.configs['flat/recommended'],
18
+ ...svelte.configs['flat/prettier'],
19
+ {
20
+ files,
21
+ languageOptions: {
22
+ ecmaVersion: 2018,
23
+ sourceType: 'module',
24
+ globals: {
25
+ ...globals.browser,
26
+ ...globals.node
27
+ },
28
+ parserOptions: {
29
+ parser: tseslint.parser
30
+ }
31
+ },
32
+ settings: {
33
+ 'import/resolver': {
34
+ typescript: true,
35
+ node: true
36
+ }
37
+ },
38
+ rules: {
39
+ 'import/export': 'off',
40
+ 'import/namespace': 'off',
41
+ 'import/default': 'off',
42
+ 'import/no-named-as-default-member': 'off',
43
+ 'import/no-named-as-default': 'off',
44
+ 'import/order': [
45
+ 'error',
46
+ {
47
+ groups: [
48
+ 'builtin',
49
+ 'external',
50
+ 'internal',
51
+ 'parent',
52
+ 'sibling',
53
+ 'index',
54
+ 'object',
55
+ 'type'
56
+ ],
57
+ pathGroups: [{ pattern: 'svelte', group: 'external', position: 'before' }],
58
+ pathGroupsExcludedImportTypes: ['svelte']
59
+ }
60
+ ],
61
+ 'no-case-declarations': 'off',
62
+ '@typescript-eslint/no-unused-expressions': 'off',
63
+ '@typescript-eslint/no-empty-object-type': 'off',
64
+ '@typescript-eslint/no-var-requires': 'off',
65
+ '@typescript-eslint/explicit-function-return-type': 'off',
66
+ '@typescript-eslint/no-explicit-any': 'off',
67
+ '@typescript-eslint/no-non-null-assertion': 'off',
68
+ '@typescript-eslint/no-inferrable-types': [
69
+ 'warn',
70
+ {
71
+ ignoreParameters: true
72
+ }
73
+ ],
74
+ '@typescript-eslint/no-unused-vars': [
75
+ 'warn',
76
+ {
77
+ argsIgnorePattern: '^_'
78
+ }
79
+ ],
80
+ '@typescript-eslint/member-delimiter-style': 'off',
81
+ '@typescript-eslint/class-name-casing': 'off',
82
+ '@typescript-eslint/explicit-module-boundary-types': 'off',
83
+ '@typescript-eslint/ban-ts-comment': 'off',
84
+ '@typescript-eslint/no-empty-interface': 'off',
85
+ 'no-constant-condition': 'off'
86
+ }
87
+ }
88
+ ])
@@ -34,6 +34,7 @@
34
34
  "eslint-import-resolver-typescript": "3.7.0",
35
35
  "eslint-plugin-import": "2.31.0",
36
36
  "eslint-plugin-svelte": "2.46.1",
37
+ "globals": "15.12.0",
37
38
  "postcss": "8.4.35",
38
39
  "postcss-import": "16.0.1",
39
40
  "postcss-nesting": "12.0.3",
@@ -1,6 +1,10 @@
1
1
  import adapter from '@sveltejs/adapter-auto'
2
2
  import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'
3
+ import path from 'path'
4
+ import { fileURLToPath } from 'url'
3
5
 
6
+ const __filename = fileURLToPath(import.meta.url)
7
+ const __dirname = path.dirname(__filename)
4
8
  // This config is ignored and replaced with one of the configs in the shared folder when a project is created.
5
9
 
6
10
  /** @type {import('@sveltejs/kit').Config} */
@@ -8,9 +12,11 @@ const config = {
8
12
  // Consult https://kit.svelte.dev/docs/integrations#preprocessors
9
13
  // for more information about preprocessors
10
14
  preprocess: vitePreprocess(),
11
-
12
15
  kit: {
13
- adapter: adapter()
16
+ adapter: adapter(),
17
+ alias: {
18
+ '@': path.join(__dirname, 'src')
19
+ }
14
20
  }
15
21
  }
16
22
 
@@ -1,21 +1,21 @@
1
- {
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
21
- }
1
+ {
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
21
+ }