functionalscript 0.6.1 → 0.6.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/dev/module.f.js +1 -1
- package/io/module.f.d.ts +1 -0
- package/io/module.f.js +1 -1
- package/io/module.js +2 -1
- package/io/virtual.f.js +1 -0
- package/package.json +1 -1
- package/path/module.f.js +2 -1
package/dev/module.f.js
CHANGED
|
@@ -33,7 +33,7 @@ export const loadModuleMap = async (io) => {
|
|
|
33
33
|
for (const f of await allFiles(io)) {
|
|
34
34
|
if (f.endsWith('.f.js') ||
|
|
35
35
|
(f.endsWith('.f.ts') && !existsSync(f.substring(0, f.length - 3) + '.js'))) {
|
|
36
|
-
const source = await asyncImport(
|
|
36
|
+
const source = await asyncImport(f);
|
|
37
37
|
map = [...map, [f, source]];
|
|
38
38
|
}
|
|
39
39
|
}
|
package/io/module.f.d.ts
CHANGED
package/io/module.f.js
CHANGED
package/io/module.js
CHANGED
|
@@ -9,11 +9,12 @@ var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExte
|
|
|
9
9
|
import { run } from "./module.f.js";
|
|
10
10
|
import fs from 'node:fs';
|
|
11
11
|
import process from "node:process";
|
|
12
|
+
import { concat } from "../path/module.f.js";
|
|
12
13
|
export const io = {
|
|
13
14
|
console,
|
|
14
15
|
fs,
|
|
15
16
|
process,
|
|
16
|
-
asyncImport: (v) => import(__rewriteRelativeImportExtension(v)),
|
|
17
|
+
asyncImport: (v) => import(__rewriteRelativeImportExtension(`file:///${concat(process.cwd())(v)}`)),
|
|
17
18
|
performance,
|
|
18
19
|
tryCatch: f => {
|
|
19
20
|
try {
|
package/io/virtual.f.js
CHANGED
package/package.json
CHANGED
package/path/module.f.js
CHANGED