@ryanatkn/gro 0.152.0 → 0.153.0
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/dist/changeset.task.js +2 -2
- package/dist/constants.d.ts +1 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +1 -1
- package/dist/esbuild_helpers.d.ts +2 -2
- package/dist/esbuild_helpers.d.ts.map +1 -1
- package/dist/esbuild_plugin_external_worker.d.ts +3 -3
- package/dist/esbuild_plugin_external_worker.d.ts.map +1 -1
- package/dist/esbuild_plugin_svelte.d.ts +2 -2
- package/dist/esbuild_plugin_svelte.d.ts.map +1 -1
- package/dist/esbuild_plugin_svelte.js +2 -2
- package/dist/esbuild_plugin_sveltekit_shim_app.d.ts +3 -3
- package/dist/esbuild_plugin_sveltekit_shim_app.d.ts.map +1 -1
- package/dist/filer.js +2 -2
- package/dist/format_directory.js +2 -2
- package/dist/gen.d.ts +2 -2
- package/dist/gen.d.ts.map +1 -1
- package/dist/gro.config.default.d.ts +4 -4
- package/dist/gro.config.default.d.ts.map +1 -1
- package/dist/gro.config.default.js +22 -12
- package/dist/gro_config.d.ts +4 -1
- package/dist/gro_config.d.ts.map +1 -1
- package/dist/gro_plugin_server.d.ts +5 -5
- package/dist/gro_plugin_server.d.ts.map +1 -1
- package/dist/gro_plugin_server.js +9 -6
- package/dist/gro_plugin_sveltekit_app.js +2 -2
- package/dist/loader.js +2 -2
- package/dist/package.d.ts +10 -10
- package/dist/package.d.ts.map +1 -1
- package/dist/package.js +16 -19
- package/dist/package_json.d.ts +0 -1
- package/dist/package_json.d.ts.map +1 -1
- package/dist/package_json.js +0 -1
- package/dist/paths.d.ts.map +1 -1
- package/dist/paths.js +3 -3
- package/dist/run_gen.js +2 -2
- package/dist/run_task.js +2 -2
- package/dist/search_fs.d.ts +1 -0
- package/dist/search_fs.d.ts.map +1 -1
- package/dist/search_fs.js +8 -0
- package/dist/{sveltekit_config.d.ts → svelte_config.d.ts} +16 -10
- package/dist/svelte_config.d.ts.map +1 -0
- package/dist/{sveltekit_config.js → svelte_config.js} +16 -12
- package/dist/sveltekit_helpers.d.ts +3 -3
- package/dist/sveltekit_helpers.d.ts.map +1 -1
- package/dist/sveltekit_helpers.js +8 -8
- package/dist/sveltekit_shim_app.d.ts +2 -2
- package/dist/sveltekit_shim_app.d.ts.map +1 -1
- package/dist/task.d.ts +2 -2
- package/dist/task.d.ts.map +1 -1
- package/dist/upgrade.task.d.ts.map +1 -1
- package/dist/upgrade.task.js +8 -0
- package/package.json +6 -6
- package/src/lib/changeset.task.ts +2 -2
- package/src/lib/constants.ts +1 -1
- package/src/lib/esbuild_helpers.ts +2 -2
- package/src/lib/esbuild_plugin_external_worker.ts +3 -3
- package/src/lib/esbuild_plugin_svelte.ts +5 -5
- package/src/lib/esbuild_plugin_sveltekit_shim_app.ts +3 -3
- package/src/lib/filer.ts +2 -2
- package/src/lib/format_directory.ts +2 -2
- package/src/lib/gen.ts +2 -2
- package/src/lib/gro.config.default.ts +25 -12
- package/src/lib/gro_config.ts +4 -0
- package/src/lib/gro_plugin_server.ts +14 -11
- package/src/lib/gro_plugin_sveltekit_app.ts +2 -2
- package/src/lib/loader.ts +2 -2
- package/src/lib/package.ts +16 -19
- package/src/lib/package_json.ts +0 -5
- package/src/lib/paths.ts +3 -3
- package/src/lib/run_gen.ts +2 -2
- package/src/lib/run_task.ts +2 -2
- package/src/lib/search_fs.ts +9 -0
- package/src/lib/{sveltekit_config.ts → svelte_config.ts} +31 -21
- package/src/lib/sveltekit_helpers.ts +10 -8
- package/src/lib/sveltekit_shim_app.ts +3 -3
- package/src/lib/task.ts +3 -3
- package/src/lib/upgrade.task.ts +9 -0
- package/dist/sveltekit_config.d.ts.map +0 -1
package/dist/changeset.task.js
CHANGED
|
@@ -47,7 +47,7 @@ export const task = {
|
|
|
47
47
|
summary: 'call changeset with gro patterns',
|
|
48
48
|
Args,
|
|
49
49
|
run: async (ctx) => {
|
|
50
|
-
const { invoke_task, args: { _: [message], minor, major, dir, access: access_arg, changelog, dep, origin, changeset_cli, }, log,
|
|
50
|
+
const { invoke_task, args: { _: [message], minor, major, dir, access: access_arg, changelog, dep, origin, changeset_cli, }, log, svelte_config, config, } = ctx;
|
|
51
51
|
if (!message && (minor || major))
|
|
52
52
|
throw new Task_Error('cannot bump version without a message');
|
|
53
53
|
if (minor && major)
|
|
@@ -58,7 +58,7 @@ export const task = {
|
|
|
58
58
|
throw new Task_Error('changeset command not found: install @changesets/cli locally or globally');
|
|
59
59
|
}
|
|
60
60
|
const package_json = load_package_json();
|
|
61
|
-
const has_sveltekit_library_result = has_sveltekit_library(package_json,
|
|
61
|
+
const has_sveltekit_library_result = has_sveltekit_library(package_json, svelte_config);
|
|
62
62
|
if (!has_sveltekit_library_result.ok) {
|
|
63
63
|
throw new Task_Error('Failed to find SvelteKit library: ' + has_sveltekit_library_result.message);
|
|
64
64
|
}
|
package/dist/constants.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare const GRO_DIR: string;
|
|
|
8
8
|
export declare const GRO_DEV_DIR: string;
|
|
9
9
|
export declare const GRO_CONFIG_PATH = "gro.config.ts";
|
|
10
10
|
export declare const README_FILENAME = "README.md";
|
|
11
|
-
export declare const
|
|
11
|
+
export declare const SVELTE_CONFIG_FILENAME = "svelte.config.js";
|
|
12
12
|
export declare const VITE_CONFIG_FILENAME = "vite.config.ts";
|
|
13
13
|
export declare const NODE_MODULES_DIRNAME = "node_modules";
|
|
14
14
|
export declare const LOCKFILE_FILENAME = "package-lock.json";
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/constants.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,cAAc,QAAQ,CAAC;AACpC,eAAO,MAAM,WAAW,SAAS,CAAC;AAClC,eAAO,MAAM,eAAe,UAAU,CAAC;AACvC,eAAO,MAAM,gBAAgB,gBAAgB,C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D,eAAO,MAAM,YAAY,QAAY,CAAC;AACtC,qDAAqD;AACrD,eAAO,MAAM,qBAAqB,QAAiD,CAAC;AACpF,eAAO,MAAM,kBAAkB,QAAO,CAAC;AAEvC,eAAO,MAAM,cAAc,SAAS,CAAC;AACrC,eAAO,MAAM,cAAc,QAAQ,CAAC;AACpC,eAAO,MAAM,oBAAoB,aAAa,CAAC"}
|
package/dist/constants.js
CHANGED
|
@@ -15,7 +15,7 @@ export const GRO_DIR = GRO_DIRNAME + '/';
|
|
|
15
15
|
export const GRO_DEV_DIR = GRO_DEV_DIRNAME + '/';
|
|
16
16
|
export const GRO_CONFIG_PATH = 'gro.config.ts';
|
|
17
17
|
export const README_FILENAME = 'README.md';
|
|
18
|
-
export const
|
|
18
|
+
export const SVELTE_CONFIG_FILENAME = 'svelte.config.js';
|
|
19
19
|
export const VITE_CONFIG_FILENAME = 'vite.config.ts';
|
|
20
20
|
export const NODE_MODULES_DIRNAME = 'node_modules';
|
|
21
21
|
export const LOCKFILE_FILENAME = 'package-lock.json';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Logger } from '@ryanatkn/belt/log.js';
|
|
2
2
|
import type * as esbuild from 'esbuild';
|
|
3
|
-
import type {
|
|
3
|
+
import type { Parsed_Svelte_Config } from './svelte_config.js';
|
|
4
4
|
export declare const print_build_result: (log: Logger, build_result: esbuild.BuildResult) => void;
|
|
5
5
|
/**
|
|
6
6
|
* Creates an esbuild `define` shim for Vite's `import.meta\.env`.
|
|
@@ -11,6 +11,6 @@ export declare const print_build_result: (log: Logger, build_result: esbuild.Bui
|
|
|
11
11
|
* @param mode
|
|
12
12
|
* @returns
|
|
13
13
|
*/
|
|
14
|
-
export declare const to_define_import_meta_env: (dev: boolean, base_url:
|
|
14
|
+
export declare const to_define_import_meta_env: (dev: boolean, base_url: Parsed_Svelte_Config["base_url"], ssr?: boolean, mode?: string) => Record<string, string>;
|
|
15
15
|
export declare const default_ts_transform_options: esbuild.TransformOptions;
|
|
16
16
|
//# sourceMappingURL=esbuild_helpers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esbuild_helpers.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/esbuild_helpers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAClD,OAAO,KAAK,KAAK,OAAO,MAAM,SAAS,CAAC;AAExC,OAAO,KAAK,EAAC,
|
|
1
|
+
{"version":3,"file":"esbuild_helpers.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/esbuild_helpers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAClD,OAAO,KAAK,KAAK,OAAO,MAAM,SAAS,CAAC;AAExC,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AAE7D,eAAO,MAAM,kBAAkB,GAAI,KAAK,MAAM,EAAE,cAAc,OAAO,CAAC,WAAW,KAAG,IAOnF,CAAC;AAMF;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,GACrC,KAAK,OAAO,EACZ,UAAU,oBAAoB,CAAC,UAAU,CAAC,EAC1C,aAAU,EACV,aAAyC,KACvC,MAAM,CAAC,MAAM,EAAE,MAAM,CAQtB,CAAC;AAEH,eAAO,MAAM,4BAA4B,EAAE,OAAO,CAAC,gBAMlD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as esbuild from 'esbuild';
|
|
2
2
|
import type { Logger } from '@ryanatkn/belt/log.js';
|
|
3
3
|
import type { CompileOptions, ModuleCompileOptions, PreprocessorGroup } from 'svelte/compiler';
|
|
4
|
-
import type {
|
|
4
|
+
import type { Parsed_Svelte_Config } from './svelte_config.js';
|
|
5
5
|
export interface Esbuild_Plugin_External_Worker_Options {
|
|
6
6
|
dev: boolean;
|
|
7
7
|
build_options: esbuild.BuildOptions;
|
|
@@ -10,8 +10,8 @@ export interface Esbuild_Plugin_External_Worker_Options {
|
|
|
10
10
|
svelte_compile_module_options?: ModuleCompileOptions;
|
|
11
11
|
svelte_preprocessors?: PreprocessorGroup | Array<PreprocessorGroup>;
|
|
12
12
|
alias?: Record<string, string>;
|
|
13
|
-
base_url?:
|
|
14
|
-
assets_url?:
|
|
13
|
+
base_url?: Parsed_Svelte_Config['base_url'];
|
|
14
|
+
assets_url?: Parsed_Svelte_Config['assets_url'];
|
|
15
15
|
public_prefix?: string;
|
|
16
16
|
private_prefix?: string;
|
|
17
17
|
env_dir?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esbuild_plugin_external_worker.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/esbuild_plugin_external_worker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AACnC,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAElD,OAAO,KAAK,EAAC,cAAc,EAAE,oBAAoB,EAAE,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AAS7F,OAAO,KAAK,EAAC,
|
|
1
|
+
{"version":3,"file":"esbuild_plugin_external_worker.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/esbuild_plugin_external_worker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AACnC,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAElD,OAAO,KAAK,EAAC,cAAc,EAAE,oBAAoB,EAAE,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AAS7F,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AAG7D,MAAM,WAAW,sCAAsC;IACtD,GAAG,EAAE,OAAO,CAAC;IACb,aAAa,EAAE,OAAO,CAAC,YAAY,CAAC;IACpC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,sBAAsB,CAAC,EAAE,cAAc,CAAC;IACxC,6BAA6B,CAAC,EAAE,oBAAoB,CAAC;IACrD,oBAAoB,CAAC,EAAE,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACpE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,QAAQ,CAAC,EAAE,oBAAoB,CAAC,UAAU,CAAC,CAAC;IAC5C,UAAU,CAAC,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;IAChD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,GAAG,CAAC,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,8BAA8B,GAAI,6MAgB5C,sCAAsC,KAAG,OAAO,CAAC,MA4ClD,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as esbuild from 'esbuild';
|
|
2
2
|
import { type CompileOptions, type ModuleCompileOptions, type PreprocessorGroup } from 'svelte/compiler';
|
|
3
|
-
import { type
|
|
3
|
+
import { type Parsed_Svelte_Config } from './svelte_config.js';
|
|
4
4
|
export interface Esbuild_Plugin_Svelte_Options {
|
|
5
5
|
dev: boolean;
|
|
6
|
-
base_url:
|
|
6
|
+
base_url: Parsed_Svelte_Config['base_url'];
|
|
7
7
|
dir?: string;
|
|
8
8
|
svelte_compile_options?: CompileOptions;
|
|
9
9
|
svelte_compile_module_options?: ModuleCompileOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esbuild_plugin_svelte.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/esbuild_plugin_svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AACnC,OAAO,EAIN,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,MAAM,iBAAiB,CAAC;AAMzB,OAAO,EAGN,KAAK,
|
|
1
|
+
{"version":3,"file":"esbuild_plugin_svelte.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/esbuild_plugin_svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AACnC,OAAO,EAIN,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,MAAM,iBAAiB,CAAC;AAMzB,OAAO,EAGN,KAAK,oBAAoB,EACzB,MAAM,oBAAoB,CAAC;AAG5B,MAAM,WAAW,6BAA6B;IAC7C,GAAG,EAAE,OAAO,CAAC;IACb,QAAQ,EAAE,oBAAoB,CAAC,UAAU,CAAC,CAAC;IAC3C,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,sBAAsB,CAAC,EAAE,cAAc,CAAC;IACxC,6BAA6B,CAAC,EAAE,oBAAoB,CAAC;IACrD,oBAAoB,CAAC,EAAE,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACpE,oBAAoB,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC;IAChD,KAAK,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC;CACtC;AAED,eAAO,MAAM,qBAAqB,GAAI,SAAS,6BAA6B,KAAG,OAAO,CAAC,MAmEtF,CAAC"}
|
|
@@ -4,10 +4,10 @@ import { readFile } from 'node:fs/promises';
|
|
|
4
4
|
import { relative } from 'node:path';
|
|
5
5
|
import { SVELTE_MATCHER, SVELTE_RUNES_MATCHER } from './svelte_helpers.js';
|
|
6
6
|
import { to_define_import_meta_env, default_ts_transform_options } from './esbuild_helpers.js';
|
|
7
|
-
import {
|
|
7
|
+
import { default_svelte_config, to_default_compile_module_options, } from './svelte_config.js';
|
|
8
8
|
import { TS_MATCHER } from './constants.js';
|
|
9
9
|
export const esbuild_plugin_svelte = (options) => {
|
|
10
|
-
const { dev, base_url, dir = process.cwd(), svelte_compile_options =
|
|
10
|
+
const { dev, base_url, dir = process.cwd(), svelte_compile_options = default_svelte_config.svelte_compile_options, svelte_compile_module_options = to_default_compile_module_options(svelte_compile_options), svelte_preprocessors, ts_transform_options = default_ts_transform_options, is_ts = (f) => TS_MATCHER.test(f), } = options;
|
|
11
11
|
const final_ts_transform_options = {
|
|
12
12
|
...ts_transform_options,
|
|
13
13
|
define: to_define_import_meta_env(dev, base_url),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type * as esbuild from 'esbuild';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Parsed_Svelte_Config } from './svelte_config.js';
|
|
3
3
|
export interface Esbuild_Plugin_Sveltekit_Shim_App_Options {
|
|
4
4
|
dev: boolean;
|
|
5
|
-
base_url:
|
|
6
|
-
assets_url:
|
|
5
|
+
base_url: Parsed_Svelte_Config['base_url'];
|
|
6
|
+
assets_url: Parsed_Svelte_Config['assets_url'];
|
|
7
7
|
}
|
|
8
8
|
export declare const esbuild_plugin_sveltekit_shim_app: ({ dev, base_url, assets_url, }: Esbuild_Plugin_Sveltekit_Shim_App_Options) => esbuild.Plugin;
|
|
9
9
|
//# sourceMappingURL=esbuild_plugin_sveltekit_shim_app.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"esbuild_plugin_sveltekit_shim_app.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/esbuild_plugin_sveltekit_shim_app.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,OAAO,MAAM,SAAS,CAAC;AAOxC,OAAO,KAAK,EAAC,
|
|
1
|
+
{"version":3,"file":"esbuild_plugin_sveltekit_shim_app.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/esbuild_plugin_sveltekit_shim_app.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,OAAO,MAAM,SAAS,CAAC;AAOxC,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AAG7D,MAAM,WAAW,yCAAyC;IACzD,GAAG,EAAE,OAAO,CAAC;IACb,QAAQ,EAAE,oBAAoB,CAAC,UAAU,CAAC,CAAC;IAC3C,UAAU,EAAE,oBAAoB,CAAC,YAAY,CAAC,CAAC;CAC/C;AAED,eAAO,MAAM,iCAAiC,GAAI,gCAI/C,yCAAyC,KAAG,OAAO,CAAC,MAqBrD,CAAC"}
|
package/dist/filer.js
CHANGED
|
@@ -9,9 +9,9 @@ import { watch_dir, } from './watch_dir.js';
|
|
|
9
9
|
import { paths } from './paths.js';
|
|
10
10
|
import { parse_imports } from './parse_imports.js';
|
|
11
11
|
import { resolve_specifier } from './resolve_specifier.js';
|
|
12
|
-
import {
|
|
12
|
+
import { default_svelte_config } from './svelte_config.js';
|
|
13
13
|
import { map_sveltekit_aliases, SVELTEKIT_GLOBAL_SPECIFIER } from './sveltekit_helpers.js';
|
|
14
|
-
const aliases = Object.entries(
|
|
14
|
+
const aliases = Object.entries(default_svelte_config.alias);
|
|
15
15
|
export class Filer {
|
|
16
16
|
root_dir;
|
|
17
17
|
files = new Map();
|
package/dist/format_directory.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { paths } from './paths.js';
|
|
2
|
-
import { GITHUB_DIRNAME, README_FILENAME,
|
|
2
|
+
import { GITHUB_DIRNAME, README_FILENAME, SVELTE_CONFIG_FILENAME, VITE_CONFIG_FILENAME, TSCONFIG_FILENAME, GRO_CONFIG_PATH, PM_CLI_DEFAULT, PRETTIER_CLI_DEFAULT, } from './constants.js';
|
|
3
3
|
import { serialize_args, to_forwarded_args } from './args.js';
|
|
4
4
|
import { spawn_cli, to_cli_name } from './cli.js';
|
|
5
5
|
const EXTENSIONS_DEFAULT = 'ts,js,json,svelte,html,css,md,yml';
|
|
6
6
|
const ROOT_PATHS_DEFAULT = `${[
|
|
7
7
|
README_FILENAME,
|
|
8
8
|
GRO_CONFIG_PATH,
|
|
9
|
-
|
|
9
|
+
SVELTE_CONFIG_FILENAME,
|
|
10
10
|
VITE_CONFIG_FILENAME,
|
|
11
11
|
TSCONFIG_FILENAME,
|
|
12
12
|
GITHUB_DIRNAME,
|
package/dist/gen.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { Result } from '@ryanatkn/belt/result.js';
|
|
|
4
4
|
import type { Timings } from '@ryanatkn/belt/timings.js';
|
|
5
5
|
import type { Path_Id } from './path.js';
|
|
6
6
|
import type { Gro_Config } from './gro_config.js';
|
|
7
|
-
import type {
|
|
7
|
+
import type { Parsed_Svelte_Config } from './svelte_config.js';
|
|
8
8
|
import { type Load_Modules_Failure, type Module_Meta } from './modules.js';
|
|
9
9
|
import { Input_Path, type Resolved_Input_File, type Resolved_Input_Path } from './input_path.js';
|
|
10
10
|
export declare const GEN_FILE_PATTERN_TEXT = "gen";
|
|
@@ -23,7 +23,7 @@ export interface Gen_File {
|
|
|
23
23
|
export type Gen = (ctx: Gen_Context) => Raw_Gen_Result | Promise<Raw_Gen_Result>;
|
|
24
24
|
export interface Gen_Context {
|
|
25
25
|
config: Gro_Config;
|
|
26
|
-
|
|
26
|
+
svelte_config: Parsed_Svelte_Config;
|
|
27
27
|
/**
|
|
28
28
|
* Same as `import.meta.url` but in path form.
|
|
29
29
|
*/
|
package/dist/gen.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gen.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/gen.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAGlD,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,0BAA0B,CAAC;AACrD,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,2BAA2B,CAAC;AAKvD,OAAO,KAAK,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AACvC,OA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 +2,11 @@ import type { Create_Gro_Config } from './gro_config.js';
|
|
|
2
2
|
/**
|
|
3
3
|
* This is the default config that's passed to `gro.config.ts`
|
|
4
4
|
* if it exists in the current project, and if not, this is the final config.
|
|
5
|
-
* It looks at the
|
|
5
|
+
* It looks at the SvelteKit config and filesystem and tries to do the right thing:
|
|
6
6
|
*
|
|
7
|
-
* - if `src/routes`, assumes a SvelteKit frontend
|
|
8
|
-
* - if `src/lib`, assumes a Node library
|
|
9
|
-
* - if `src/lib/server/server.ts`, assumes a Node server
|
|
7
|
+
* - if `src/routes`, assumes a SvelteKit frontend - respects `KitConfig.kit.files.routes`
|
|
8
|
+
* - if `src/lib`, assumes a Node library - respects `KitConfig.kit.files.lib`
|
|
9
|
+
* - if `src/lib/server/server.ts`, assumes a Node server - needs config
|
|
10
10
|
*/
|
|
11
11
|
declare const config: Create_Gro_Config;
|
|
12
12
|
export default config;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gro.config.default.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/gro.config.default.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"gro.config.default.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/gro.config.default.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AAWvD;;;;;;;;GAQG;AACH,QAAA,MAAM,MAAM,EAAE,iBAkCb,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1,31 +1,41 @@
|
|
|
1
|
+
import { resolve } from 'node:path';
|
|
1
2
|
import { gro_plugin_sveltekit_library } from './gro_plugin_sveltekit_library.js';
|
|
2
3
|
import { has_server, gro_plugin_server } from './gro_plugin_server.js';
|
|
3
4
|
import { gro_plugin_sveltekit_app } from './gro_plugin_sveltekit_app.js';
|
|
4
5
|
import { has_sveltekit_app, has_sveltekit_library } from './sveltekit_helpers.js';
|
|
5
6
|
import { gro_plugin_gen } from './gro_plugin_gen.js';
|
|
6
|
-
import { has_dep,
|
|
7
|
+
import { has_dep, load_package_json } from './package_json.js';
|
|
8
|
+
import { find_first_existing_file } from './search_fs.js';
|
|
9
|
+
// TODO hacky, maybe extract utils?
|
|
7
10
|
/**
|
|
8
11
|
* This is the default config that's passed to `gro.config.ts`
|
|
9
12
|
* if it exists in the current project, and if not, this is the final config.
|
|
10
|
-
* It looks at the
|
|
13
|
+
* It looks at the SvelteKit config and filesystem and tries to do the right thing:
|
|
11
14
|
*
|
|
12
|
-
* - if `src/routes`, assumes a SvelteKit frontend
|
|
13
|
-
* - if `src/lib`, assumes a Node library
|
|
14
|
-
* - if `src/lib/server/server.ts`, assumes a Node server
|
|
15
|
+
* - if `src/routes`, assumes a SvelteKit frontend - respects `KitConfig.kit.files.routes`
|
|
16
|
+
* - if `src/lib`, assumes a Node library - respects `KitConfig.kit.files.lib`
|
|
17
|
+
* - if `src/lib/server/server.ts`, assumes a Node server - needs config
|
|
15
18
|
*/
|
|
16
|
-
const config = async (cfg) => {
|
|
19
|
+
const config = async (cfg, svelte_config) => {
|
|
17
20
|
const package_json = load_package_json(); // TODO gets wastefully loaded by some plugins, maybe put in plugin/task context? how does that interact with `map_package_json`?
|
|
18
21
|
const [has_moss_dep, has_server_result, has_sveltekit_library_result, has_sveltekit_app_result] = await Promise.all([
|
|
19
|
-
has_dep('@ryanatkn/moss', package_json)
|
|
22
|
+
has_dep('@ryanatkn/moss', package_json),
|
|
20
23
|
has_server(),
|
|
21
|
-
has_sveltekit_library(package_json),
|
|
24
|
+
has_sveltekit_library(package_json, svelte_config),
|
|
22
25
|
has_sveltekit_app(),
|
|
23
26
|
]);
|
|
27
|
+
const local_moss_plugin_path = find_first_existing_file([
|
|
28
|
+
'./src/lib/gro_plugin_moss.ts',
|
|
29
|
+
'./src/routes/gro_plugin_moss.ts',
|
|
30
|
+
]);
|
|
31
|
+
// put things that generate files before SvelteKit so it can see them
|
|
24
32
|
cfg.plugins = async () => [
|
|
25
|
-
//
|
|
26
|
-
|
|
27
|
-
? (await import(
|
|
28
|
-
:
|
|
33
|
+
// TODO probably belongs in the gen system
|
|
34
|
+
local_moss_plugin_path
|
|
35
|
+
? (await import(resolve(local_moss_plugin_path))).gro_plugin_moss()
|
|
36
|
+
: has_moss_dep
|
|
37
|
+
? (await import('@ryanatkn/moss/gro_plugin_moss.js')).gro_plugin_moss()
|
|
38
|
+
: null, // lazy load to avoid errors if it's not installed
|
|
29
39
|
gro_plugin_gen(),
|
|
30
40
|
has_server_result.ok ? gro_plugin_server() : null,
|
|
31
41
|
has_sveltekit_library_result.ok ? gro_plugin_sveltekit_library() : null,
|
package/dist/gro_config.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Create_Config_Plugins } from './plugin.js';
|
|
2
2
|
import type { Map_Package_Json } from './package_json.js';
|
|
3
3
|
import type { Path_Filter, Path_Id } from './path.js';
|
|
4
|
+
import type { Parsed_Svelte_Config } from './svelte_config.js';
|
|
4
5
|
/**
|
|
5
6
|
* The config that users can extend via `gro.config.ts`.
|
|
6
7
|
* This is exposed to users in places like tasks and genfiles.
|
|
@@ -35,6 +36,8 @@ export interface Gro_Config extends Raw_Gro_Config {
|
|
|
35
36
|
* The CLI to use that's compatible with `npm install` and `npm link`. Defaults to `'npm'`.
|
|
36
37
|
*/
|
|
37
38
|
pm_cli: string;
|
|
39
|
+
/** @default SVELTE_CONFIG_FILENAME */
|
|
40
|
+
svelte_config_filename?: string;
|
|
38
41
|
}
|
|
39
42
|
/**
|
|
40
43
|
* The relaxed variant of `Gro_Config` that users can provide via `gro.config.ts`.
|
|
@@ -49,7 +52,7 @@ export interface Raw_Gro_Config {
|
|
|
49
52
|
js_cli?: string;
|
|
50
53
|
pm_cli?: string;
|
|
51
54
|
}
|
|
52
|
-
export type Create_Gro_Config = (base_config: Gro_Config) => Raw_Gro_Config | Promise<Raw_Gro_Config>;
|
|
55
|
+
export type Create_Gro_Config = (base_config: Gro_Config, svelte_config?: Parsed_Svelte_Config) => Raw_Gro_Config | Promise<Raw_Gro_Config>;
|
|
53
56
|
export declare const create_empty_gro_config: () => Gro_Config;
|
|
54
57
|
/**
|
|
55
58
|
* The regexp used by default to exclude directories and files
|
package/dist/gro_config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gro_config.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/gro_config.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,aAAa,CAAC;AACvD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAC,WAAW,EAAE,OAAO,EAAC,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"gro_config.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/gro_config.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,aAAa,CAAC;AACvD,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAC,WAAW,EAAE,OAAO,EAAC,MAAM,WAAW,CAAC;AACpD,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AAE7D;;;;GAIG;AACH,MAAM,WAAW,UAAW,SAAQ,cAAc;IACjD;;OAEG;IACH,OAAO,EAAE,qBAAqB,CAAC;IAC/B;;;;OAIG;IACH,gBAAgB,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC1C;;;OAGG;IACH,cAAc,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IAC/B;;;OAGG;IACH,cAAc,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IACnC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,sBAAsB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC9B,OAAO,CAAC,EAAE,qBAAqB,CAAC;IAChC,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC3C,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B,cAAc,CAAC,EAAE,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;IACzD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,iBAAiB,GAAG,CAC/B,WAAW,EAAE,UAAU,EACvB,aAAa,CAAC,EAAE,oBAAoB,KAChC,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAE9C,eAAO,MAAM,uBAAuB,QAAO,UAYzC,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,QAUnC,CAAC;AAWF,eAAO,MAAM,wBAAwB,QAAwD,CAAC;AAE9F;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAAI,YAAY,cAAc,KAAG,UAwBjE,CAAC;AAEF,MAAM,WAAW,iBAAiB;IACjC,QAAQ,CAAC,OAAO,EAAE,cAAc,GAAG,iBAAiB,CAAC;CACrD;AAED,eAAO,MAAM,eAAe,GAAU,YAAgB,KAAG,OAAO,CAAC,UAAU,CAiB1E,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,CACxC,aAAa,EAAE,GAAG,EAClB,WAAW,EAAE,MAAM,KACf,OAAO,CAAC,aAAa,IAAI,iBAS7B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as esbuild from 'esbuild';
|
|
2
|
-
import type { Config as
|
|
2
|
+
import type { Config as SvelteConfig } from '@sveltejs/kit';
|
|
3
3
|
import type { Result } from '@ryanatkn/belt/result.js';
|
|
4
4
|
import type { Plugin } from './plugin.js';
|
|
5
5
|
export declare const SERVER_SOURCE_ID: Flavored<string, "Path_Id">;
|
|
@@ -22,7 +22,7 @@ export interface Gro_Plugin_Server_Options {
|
|
|
22
22
|
*/
|
|
23
23
|
outpaths?: Create_Outpaths;
|
|
24
24
|
/**
|
|
25
|
-
* @default SvelteKit's `.env`, `.env.development`, and `.env.production
|
|
25
|
+
* @default ```SvelteKit's `.env`, `.env.development`, and `.env.production````
|
|
26
26
|
*/
|
|
27
27
|
env_files?: Array<string>;
|
|
28
28
|
/**
|
|
@@ -30,9 +30,9 @@ export interface Gro_Plugin_Server_Options {
|
|
|
30
30
|
*/
|
|
31
31
|
ambient_env?: Record<string, string>;
|
|
32
32
|
/**
|
|
33
|
-
* @default loaded from `${cwd}/${
|
|
33
|
+
* @default ```loaded from `${cwd}/${SVELTE_CONFIG_FILENAME}````
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
svelte_config?: SvelteConfig;
|
|
36
36
|
/**
|
|
37
37
|
* @default 'esnext'
|
|
38
38
|
*/
|
|
@@ -75,5 +75,5 @@ export interface Outpaths {
|
|
|
75
75
|
outname: string;
|
|
76
76
|
}
|
|
77
77
|
export type Create_Outpaths = (dev: boolean) => Outpaths;
|
|
78
|
-
export declare const gro_plugin_server: ({ entry_points, dir, outpaths, env_files, ambient_env,
|
|
78
|
+
export declare const gro_plugin_server: ({ entry_points, dir, outpaths, env_files, ambient_env, svelte_config, target, esbuild_build_options, rebuild_throttle_delay, cli_command, run, }?: Gro_Plugin_Server_Options) => Plugin;
|
|
79
79
|
//# sourceMappingURL=gro_plugin_server.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gro_plugin_server.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/gro_plugin_server.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AACnC,OAAO,KAAK,EAAC,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"gro_plugin_server.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/gro_plugin_server.ts"],"names":[],"mappings":"AACA,OAAO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MAAM,MAAM,eAAe,GAAG,CAAC,GAAG,EAAE,OAAO,KAAK,QAAQ,CAAC;AAEzD,eAAO,MAAM,iBAAiB,GAAI,mJAgB/B,yBAA8B,KAAG,MA2JnC,CAAC"}
|
|
@@ -8,7 +8,7 @@ import { throttle } from '@ryanatkn/belt/throttle.js';
|
|
|
8
8
|
import { base_path_to_path_id, LIB_DIRNAME, paths } from './paths.js';
|
|
9
9
|
import { GRO_DEV_DIRNAME, SERVER_DIST_PATH } from './constants.js';
|
|
10
10
|
import { watch_dir } from './watch_dir.js';
|
|
11
|
-
import {
|
|
11
|
+
import { parse_svelte_config, default_svelte_config } from './svelte_config.js';
|
|
12
12
|
import { esbuild_plugin_sveltekit_shim_app } from './esbuild_plugin_sveltekit_shim_app.js';
|
|
13
13
|
import { esbuild_plugin_sveltekit_shim_env } from './esbuild_plugin_sveltekit_shim_env.js';
|
|
14
14
|
import { print_build_result, to_define_import_meta_env } from './esbuild_helpers.js';
|
|
@@ -28,7 +28,7 @@ export const gro_plugin_server = ({ entry_points = [SERVER_SOURCE_ID], dir = pro
|
|
|
28
28
|
outdir: join(dir, dev ? GRO_DEV_DIRNAME : SERVER_DIST_PATH),
|
|
29
29
|
outbase: paths.lib,
|
|
30
30
|
outname: 'server/server.js',
|
|
31
|
-
}), env_files, ambient_env,
|
|
31
|
+
}), env_files, ambient_env, svelte_config, target = 'esnext', esbuild_build_options = identity, rebuild_throttle_delay = 1000, cli_command, run, // `dev` default is not available in this scope
|
|
32
32
|
} = {}) => {
|
|
33
33
|
let build_ctx = null;
|
|
34
34
|
let watcher = null;
|
|
@@ -37,10 +37,13 @@ export const gro_plugin_server = ({ entry_points = [SERVER_SOURCE_ID], dir = pro
|
|
|
37
37
|
return {
|
|
38
38
|
name: 'gro_plugin_server',
|
|
39
39
|
setup: async ({ dev, watch, timings, log, config }) => {
|
|
40
|
-
const
|
|
41
|
-
?
|
|
42
|
-
: await
|
|
43
|
-
|
|
40
|
+
const parsed_svelte_config = !svelte_config && strip_end(dir, '/') === process.cwd()
|
|
41
|
+
? default_svelte_config
|
|
42
|
+
: await parse_svelte_config({
|
|
43
|
+
dir_or_config: svelte_config ?? dir,
|
|
44
|
+
config_filename: config.svelte_config_filename,
|
|
45
|
+
});
|
|
46
|
+
const { alias, base_url, assets_url, env_dir, private_prefix, public_prefix, svelte_compile_options, svelte_compile_module_options, svelte_preprocessors, } = parsed_svelte_config;
|
|
44
47
|
const { outbase, outdir, outname } = outpaths(dev);
|
|
45
48
|
const server_outpath = join(outdir, outname);
|
|
46
49
|
const timing_to_esbuild_create_context = timings.start('create build context');
|
|
@@ -6,7 +6,7 @@ import { Task_Error } from './task.js';
|
|
|
6
6
|
import { find_cli, spawn_cli, spawn_cli_process } from './cli.js';
|
|
7
7
|
import { serialize_src_json, create_src_json } from './src_json.js';
|
|
8
8
|
import { EXPORTS_EXCLUDER_DEFAULT } from './gro_config.js';
|
|
9
|
-
import {
|
|
9
|
+
import { default_svelte_config } from './svelte_config.js';
|
|
10
10
|
import { SOURCE_DIRNAME } from './constants.js';
|
|
11
11
|
import { VITE_CLI } from './sveltekit_helpers.js';
|
|
12
12
|
export const gro_plugin_sveltekit_app = ({ host_target = 'github_pages', well_known_package_json, well_known_src_json, well_known_src_files, vite_cli = VITE_CLI, } = {}) => {
|
|
@@ -57,7 +57,7 @@ export const gro_plugin_sveltekit_app = ({ host_target = 'github_pages', well_kn
|
|
|
57
57
|
// maybe a Vite middleware is best? what if this plugin added its plugin to your `vite.config.ts`?
|
|
58
58
|
// copy files to `static` before building, in such a way
|
|
59
59
|
// that's non-destructive to existing files and dirs and easy to clean up
|
|
60
|
-
const { assets_path } =
|
|
60
|
+
const { assets_path } = default_svelte_config;
|
|
61
61
|
const cleanups = [
|
|
62
62
|
serialized_package_json
|
|
63
63
|
? create_temporarily(join(assets_path, '.well-known/package.json'), serialized_package_json)
|
package/dist/loader.js
CHANGED
|
@@ -6,7 +6,7 @@ import { escape_regexp } from '@ryanatkn/belt/regexp.js';
|
|
|
6
6
|
import { readFileSync } from 'node:fs';
|
|
7
7
|
import { render_env_shim_module } from './sveltekit_shim_env.js';
|
|
8
8
|
import { render_sveltekit_shim_app_environment, render_sveltekit_shim_app_paths, SVELTEKIT_SHIM_APP_ENVIRONMENT_MATCHER, SVELTEKIT_SHIM_APP_PATHS_MATCHER, sveltekit_shim_app_specifiers, } from './sveltekit_shim_app.js';
|
|
9
|
-
import {
|
|
9
|
+
import { default_svelte_config } from './svelte_config.js';
|
|
10
10
|
import { SVELTE_MATCHER, SVELTE_RUNES_MATCHER } from './svelte_helpers.js';
|
|
11
11
|
import { IS_THIS_GRO, paths } from './paths.js';
|
|
12
12
|
import { JSON_MATCHER, NODE_MODULES_DIRNAME, TS_MATCHER } from './constants.js';
|
|
@@ -42,7 +42,7 @@ TODO how to improve that gnarly import line? was originally designed for the now
|
|
|
42
42
|
// dev is always true in the loader
|
|
43
43
|
const dev = true;
|
|
44
44
|
const dir = paths.root;
|
|
45
|
-
const { alias, base_url, assets_url, env_dir, private_prefix, public_prefix, svelte_compile_options, svelte_compile_module_options, svelte_preprocessors, } =
|
|
45
|
+
const { alias, base_url, assets_url, env_dir, private_prefix, public_prefix, svelte_compile_options, svelte_compile_module_options, svelte_preprocessors, } = default_svelte_config;
|
|
46
46
|
const ts_transform_options = {
|
|
47
47
|
...default_ts_transform_options,
|
|
48
48
|
define: to_define_import_meta_env(dev, base_url),
|
package/dist/package.d.ts
CHANGED
|
@@ -363,11 +363,11 @@ export declare const package_json: {
|
|
|
363
363
|
types: string;
|
|
364
364
|
default: string;
|
|
365
365
|
};
|
|
366
|
-
'./
|
|
366
|
+
'./svelte_config.js': {
|
|
367
367
|
types: string;
|
|
368
368
|
default: string;
|
|
369
369
|
};
|
|
370
|
-
'./
|
|
370
|
+
'./svelte_helpers.js': {
|
|
371
371
|
types: string;
|
|
372
372
|
default: string;
|
|
373
373
|
};
|
|
@@ -1030,14 +1030,7 @@ export declare const src_json: {
|
|
|
1030
1030
|
kind: "function";
|
|
1031
1031
|
})[];
|
|
1032
1032
|
};
|
|
1033
|
-
'./
|
|
1034
|
-
path: string;
|
|
1035
|
-
declarations: {
|
|
1036
|
-
name: string;
|
|
1037
|
-
kind: "variable";
|
|
1038
|
-
}[];
|
|
1039
|
-
};
|
|
1040
|
-
'./sveltekit_config.js': {
|
|
1033
|
+
'./svelte_config.js': {
|
|
1041
1034
|
path: string;
|
|
1042
1035
|
declarations: ({
|
|
1043
1036
|
name: string;
|
|
@@ -1050,6 +1043,13 @@ export declare const src_json: {
|
|
|
1050
1043
|
kind: "variable";
|
|
1051
1044
|
})[];
|
|
1052
1045
|
};
|
|
1046
|
+
'./svelte_helpers.js': {
|
|
1047
|
+
path: string;
|
|
1048
|
+
declarations: {
|
|
1049
|
+
name: string;
|
|
1050
|
+
kind: "variable";
|
|
1051
|
+
}[];
|
|
1052
|
+
};
|
|
1053
1053
|
'./sveltekit_helpers.js': {
|
|
1054
1054
|
path: string;
|
|
1055
1055
|
declarations: ({
|
package/dist/package.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/package.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuwBD,CAAC"}
|
package/dist/package.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// generated by src/lib/package.gen.ts
|
|
2
2
|
export const package_json = {
|
|
3
3
|
name: '@ryanatkn/gro',
|
|
4
|
-
version: '0.
|
|
4
|
+
version: '0.153.0',
|
|
5
5
|
description: 'task runner and toolkit extending SvelteKit',
|
|
6
6
|
motto: 'generate, run, optimize',
|
|
7
7
|
glyph: '🌰',
|
|
@@ -56,7 +56,7 @@ export const package_json = {
|
|
|
56
56
|
'@changesets/changelog-git': '^0.2.1',
|
|
57
57
|
'@changesets/types': '^6.1.0',
|
|
58
58
|
'@ryanatkn/eslint-config': '^0.8.0',
|
|
59
|
-
'@ryanatkn/fuz': '^0.139.
|
|
59
|
+
'@ryanatkn/fuz': '^0.139.2',
|
|
60
60
|
'@ryanatkn/moss': '^0.26.0',
|
|
61
61
|
'@sveltejs/adapter-static': '^3.0.8',
|
|
62
62
|
'@sveltejs/kit': '^2.20.8',
|
|
@@ -206,14 +206,11 @@ export const package_json = {
|
|
|
206
206
|
'./run.task.js': { types: './dist/run.task.d.ts', default: './dist/run.task.js' },
|
|
207
207
|
'./search_fs.js': { types: './dist/search_fs.d.ts', default: './dist/search_fs.js' },
|
|
208
208
|
'./src_json.js': { types: './dist/src_json.d.ts', default: './dist/src_json.js' },
|
|
209
|
+
'./svelte_config.js': { types: './dist/svelte_config.d.ts', default: './dist/svelte_config.js' },
|
|
209
210
|
'./svelte_helpers.js': {
|
|
210
211
|
types: './dist/svelte_helpers.d.ts',
|
|
211
212
|
default: './dist/svelte_helpers.js',
|
|
212
213
|
},
|
|
213
|
-
'./sveltekit_config.js': {
|
|
214
|
-
types: './dist/sveltekit_config.d.ts',
|
|
215
|
-
default: './dist/sveltekit_config.js',
|
|
216
|
-
},
|
|
217
214
|
'./sveltekit_helpers.js': {
|
|
218
215
|
types: './dist/sveltekit_helpers.d.ts',
|
|
219
216
|
default: './dist/sveltekit_helpers.js',
|
|
@@ -260,7 +257,7 @@ export const package_json = {
|
|
|
260
257
|
};
|
|
261
258
|
export const src_json = {
|
|
262
259
|
name: '@ryanatkn/gro',
|
|
263
|
-
version: '0.
|
|
260
|
+
version: '0.153.0',
|
|
264
261
|
modules: {
|
|
265
262
|
'.': {
|
|
266
263
|
path: 'index.ts',
|
|
@@ -375,7 +372,7 @@ export const src_json = {
|
|
|
375
372
|
{ name: 'GRO_DEV_DIR', kind: 'variable' },
|
|
376
373
|
{ name: 'GRO_CONFIG_PATH', kind: 'variable' },
|
|
377
374
|
{ name: 'README_FILENAME', kind: 'variable' },
|
|
378
|
-
{ name: '
|
|
375
|
+
{ name: 'SVELTE_CONFIG_FILENAME', kind: 'variable' },
|
|
379
376
|
{ name: 'VITE_CONFIG_FILENAME', kind: 'variable' },
|
|
380
377
|
{ name: 'NODE_MODULES_DIRNAME', kind: 'variable' },
|
|
381
378
|
{ name: 'LOCKFILE_FILENAME', kind: 'variable' },
|
|
@@ -711,7 +708,6 @@ export const src_json = {
|
|
|
711
708
|
{ name: 'update_package_json', kind: 'function' },
|
|
712
709
|
{ name: 'to_package_exports', kind: 'function' },
|
|
713
710
|
{ name: 'parse_repo_url', kind: 'function' },
|
|
714
|
-
{ name: 'is_dep', kind: 'function' },
|
|
715
711
|
{ name: 'has_dep', kind: 'function' },
|
|
716
712
|
{ name: 'Package_Json_Dep', kind: 'type' },
|
|
717
713
|
{ name: 'extract_deps', kind: 'function' },
|
|
@@ -847,6 +843,7 @@ export const src_json = {
|
|
|
847
843
|
declarations: [
|
|
848
844
|
{ name: 'Search_Fs_Options', kind: 'type' },
|
|
849
845
|
{ name: 'search_fs', kind: 'function' },
|
|
846
|
+
{ name: 'find_first_existing_file', kind: 'function' },
|
|
850
847
|
],
|
|
851
848
|
},
|
|
852
849
|
'./src_json.js': {
|
|
@@ -862,6 +859,16 @@ export const src_json = {
|
|
|
862
859
|
{ name: 'to_src_modules', kind: 'function' },
|
|
863
860
|
],
|
|
864
861
|
},
|
|
862
|
+
'./svelte_config.js': {
|
|
863
|
+
path: 'svelte_config.ts',
|
|
864
|
+
declarations: [
|
|
865
|
+
{ name: 'load_svelte_config', kind: 'function' },
|
|
866
|
+
{ name: 'Parsed_Svelte_Config', kind: 'type' },
|
|
867
|
+
{ name: 'parse_svelte_config', kind: 'function' },
|
|
868
|
+
{ name: 'to_default_compile_module_options', kind: 'function' },
|
|
869
|
+
{ name: 'default_svelte_config', kind: 'variable' },
|
|
870
|
+
],
|
|
871
|
+
},
|
|
865
872
|
'./svelte_helpers.js': {
|
|
866
873
|
path: 'svelte_helpers.ts',
|
|
867
874
|
declarations: [
|
|
@@ -869,16 +876,6 @@ export const src_json = {
|
|
|
869
876
|
{ name: 'SVELTE_RUNES_MATCHER', kind: 'variable' },
|
|
870
877
|
],
|
|
871
878
|
},
|
|
872
|
-
'./sveltekit_config.js': {
|
|
873
|
-
path: 'sveltekit_config.ts',
|
|
874
|
-
declarations: [
|
|
875
|
-
{ name: 'load_sveltekit_config', kind: 'function' },
|
|
876
|
-
{ name: 'Parsed_Sveltekit_Config', kind: 'type' },
|
|
877
|
-
{ name: 'init_sveltekit_config', kind: 'function' },
|
|
878
|
-
{ name: 'to_default_compile_module_options', kind: 'function' },
|
|
879
|
-
{ name: 'default_sveltekit_config', kind: 'variable' },
|
|
880
|
-
],
|
|
881
|
-
},
|
|
882
879
|
'./sveltekit_helpers.js': {
|
|
883
880
|
path: 'sveltekit_helpers.ts',
|
|
884
881
|
declarations: [
|