@ryanatkn/gro 0.174.1 → 0.174.2
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/loader.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/loader.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,QAAQ,EAAE,WAAW,EAAC,MAAM,aAAa,CAAC;AA2EvD,cAAc;AACd,eAAO,MAAM,IAAI,EAAE,QA0GlB,CAAC;AAEF,cAAc;AACd,eAAO,MAAM,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"loader.d.ts","sourceRoot":"../src/lib/","sources":["../src/lib/loader.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,QAAQ,EAAE,WAAW,EAAC,MAAM,aAAa,CAAC;AA2EvD,cAAc;AACd,eAAO,MAAM,IAAI,EAAE,QA0GlB,CAAC;AAEF,cAAc;AACd,eAAO,MAAM,OAAO,EAAE,WAsDrB,CAAC"}
|
package/dist/loader.js
CHANGED
|
@@ -169,6 +169,11 @@ export const resolve = async (specifier, context, nextResolve) => {
|
|
|
169
169
|
shortCircuit: true,
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
|
+
// Support SvelteKit `$app` imports, including from node_modules
|
|
173
|
+
const shimmed = sveltekit_shim_app_specifiers.get(s);
|
|
174
|
+
if (shimmed !== undefined) {
|
|
175
|
+
return nextResolve(shimmed, context);
|
|
176
|
+
}
|
|
172
177
|
// Special case for Gro's dependencies that import into Gro.
|
|
173
178
|
// Without this, we'd need to add a dev dep to Gro for Gro, which causes problems.
|
|
174
179
|
// TODO maybe make this generic, checking `package_json.name` against `s` and map it, possibly need to export `resolve_exported_value`
|
|
@@ -179,10 +184,6 @@ export const resolve = async (specifier, context, nextResolve) => {
|
|
|
179
184
|
if (!parent_url || NODE_MODULES_MATCHER.test(parent_url)) {
|
|
180
185
|
return nextResolve(s, context);
|
|
181
186
|
}
|
|
182
|
-
const shimmed = sveltekit_shim_app_specifiers.get(s);
|
|
183
|
-
if (shimmed !== undefined) {
|
|
184
|
-
return nextResolve(shimmed, context);
|
|
185
|
-
}
|
|
186
187
|
s = map_sveltekit_aliases(s, aliases);
|
|
187
188
|
// The specifier has now been mapped to its final form, so we can inspect it.
|
|
188
189
|
// Imports into `node_modules` use the default algorithm, and the rest use use Vite conventions.
|
|
@@ -16,7 +16,7 @@ export const page = {
|
|
|
16
16
|
route: { id: null },
|
|
17
17
|
state: {},
|
|
18
18
|
status: -1,
|
|
19
|
-
url: new URL('https://github.com/ryanatkn/gro'),
|
|
19
|
+
url: new URL('https://github.com/ryanatkn/gro'), // TODO maybe use package.json?
|
|
20
20
|
};
|
|
21
21
|
export const updated = {
|
|
22
22
|
current: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ryanatkn/gro",
|
|
3
|
-
"version": "0.174.
|
|
3
|
+
"version": "0.174.2",
|
|
4
4
|
"description": "task runner and toolkit extending SvelteKit",
|
|
5
5
|
"motto": "generate, run, optimize",
|
|
6
6
|
"glyph": "🌰",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"@changesets/changelog-git": "^0.2.1",
|
|
84
84
|
"@changesets/types": "^6.1.0",
|
|
85
85
|
"@ryanatkn/eslint-config": "^0.9.0",
|
|
86
|
-
"@ryanatkn/fuz": "^0.
|
|
86
|
+
"@ryanatkn/fuz": "^0.156.0",
|
|
87
87
|
"@ryanatkn/moss": "^0.37.0",
|
|
88
88
|
"@sveltejs/adapter-static": "^3.0.10",
|
|
89
89
|
"@sveltejs/kit": "^2.47.2",
|
package/src/lib/loader.ts
CHANGED
|
@@ -206,6 +206,12 @@ export const resolve: ResolveHook = async (specifier, context, nextResolve) => {
|
|
|
206
206
|
};
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
+
// Support SvelteKit `$app` imports, including from node_modules
|
|
210
|
+
const shimmed = sveltekit_shim_app_specifiers.get(s);
|
|
211
|
+
if (shimmed !== undefined) {
|
|
212
|
+
return nextResolve(shimmed, context);
|
|
213
|
+
}
|
|
214
|
+
|
|
209
215
|
// Special case for Gro's dependencies that import into Gro.
|
|
210
216
|
// Without this, we'd need to add a dev dep to Gro for Gro, which causes problems.
|
|
211
217
|
// TODO maybe make this generic, checking `package_json.name` against `s` and map it, possibly need to export `resolve_exported_value`
|
|
@@ -218,11 +224,6 @@ export const resolve: ResolveHook = async (specifier, context, nextResolve) => {
|
|
|
218
224
|
return nextResolve(s, context);
|
|
219
225
|
}
|
|
220
226
|
|
|
221
|
-
const shimmed = sveltekit_shim_app_specifiers.get(s);
|
|
222
|
-
if (shimmed !== undefined) {
|
|
223
|
-
return nextResolve(shimmed, context);
|
|
224
|
-
}
|
|
225
|
-
|
|
226
227
|
s = map_sveltekit_aliases(s, aliases);
|
|
227
228
|
|
|
228
229
|
// The specifier has now been mapped to its final form, so we can inspect it.
|
|
@@ -24,7 +24,7 @@ export const page: typeof base_page = {
|
|
|
24
24
|
route: {id: null},
|
|
25
25
|
state: {},
|
|
26
26
|
status: -1,
|
|
27
|
-
url: new URL('https://github.com/ryanatkn/gro') as any,
|
|
27
|
+
url: new URL('https://github.com/ryanatkn/gro') as any, // TODO maybe use package.json?
|
|
28
28
|
};
|
|
29
29
|
|
|
30
30
|
export const updated: typeof base_updated = {
|