silgi 0.8.34 → 0.8.36
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/_chunks/index.mjs +1 -1
- package/dist/cli/run.mjs +3 -5
- package/dist/meta/index.d.mts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/_chunks/index.mjs
CHANGED
package/dist/cli/run.mjs
CHANGED
|
@@ -164,16 +164,14 @@ const run = defineCommand({
|
|
|
164
164
|
}
|
|
165
165
|
if (script.type === "function") {
|
|
166
166
|
const jiti = createJiti(import.meta.url, {
|
|
167
|
-
moduleCache: false,
|
|
168
|
-
fsCache: false,
|
|
169
167
|
alias: silgiConfig.alias
|
|
170
168
|
});
|
|
171
169
|
const cleanHandler = script.handler.replace(/\n/g, "");
|
|
172
170
|
await jiti.evalModule(cleanHandler, {
|
|
173
|
-
filename:
|
|
171
|
+
filename: import.meta.url,
|
|
174
172
|
async: true,
|
|
175
|
-
|
|
176
|
-
|
|
173
|
+
conditions: silgiConfig.conditions,
|
|
174
|
+
forceTranspile: true
|
|
177
175
|
});
|
|
178
176
|
}
|
|
179
177
|
}
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED