unrun 0.2.1 → 0.2.3
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/{cli.js → cli.mjs} +1 -1
- package/dist/{index.js → index.mjs} +1 -1
- package/dist/{src-CRcGnzTd.js → src-Ci6YaVK-.mjs} +1 -1
- package/dist/sync/{worker.js → worker.mjs} +1 -1
- package/package.json +12 -12
- /package/dist/{cli.d.ts → cli.d.mts} +0 -0
- /package/dist/{index.d.ts → index.d.mts} +0 -0
- /package/dist/sync/{worker.d.ts → worker.d.mts} +0 -0
package/dist/{cli.js → cli.mjs}
RENAMED
|
@@ -83,7 +83,7 @@ async function runCLI() {
|
|
|
83
83
|
...parsedArguments.afterArgs
|
|
84
84
|
];
|
|
85
85
|
try {
|
|
86
|
-
const { unrunCli } = await import("./index.
|
|
86
|
+
const { unrunCli } = await import("./index.mjs");
|
|
87
87
|
await unrunCli({
|
|
88
88
|
path: parsedArguments.filePath,
|
|
89
89
|
debug: parsedArguments.debug,
|
|
@@ -555,7 +555,7 @@ async function unrun(options) {
|
|
|
555
555
|
* @returns The loaded module.
|
|
556
556
|
*/
|
|
557
557
|
function unrunSync(options) {
|
|
558
|
-
return createSyncFn(__require.resolve("./sync/worker"), { tsRunner: "node" })(options);
|
|
558
|
+
return createSyncFn(__require.resolve("./sync/worker.mjs"), { tsRunner: "node" })(options);
|
|
559
559
|
}
|
|
560
560
|
/**
|
|
561
561
|
* Runs a given module with JIT transpilation based on the provided options.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unrun",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "A tool to load and execute any JavaScript or TypeScript code at runtime.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,22 +17,22 @@
|
|
|
17
17
|
"files": [
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
|
-
"main": "./dist/index.
|
|
21
|
-
"module": "./dist/index.
|
|
22
|
-
"types": "./dist/index.d.
|
|
20
|
+
"main": "./dist/index.mjs",
|
|
21
|
+
"module": "./dist/index.mjs",
|
|
22
|
+
"types": "./dist/index.d.mts",
|
|
23
23
|
"exports": {
|
|
24
|
-
".": "./dist/index.
|
|
24
|
+
".": "./dist/index.mjs",
|
|
25
25
|
"./package.json": "./package.json"
|
|
26
26
|
},
|
|
27
27
|
"bin": {
|
|
28
|
-
"unrun": "./dist/cli.
|
|
28
|
+
"unrun": "./dist/cli.mjs"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@oxc-project/runtime": "^0.
|
|
35
|
-
"rolldown": "1.0.0-beta.
|
|
34
|
+
"@oxc-project/runtime": "^0.96.0",
|
|
35
|
+
"rolldown": "1.0.0-beta.47",
|
|
36
36
|
"synckit": "^0.11.11"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"react-dom": "^19.1.1",
|
|
65
65
|
"reflect-metadata": "^0.2.2",
|
|
66
66
|
"tinyexec": "^1.0.1",
|
|
67
|
-
"tsdown": "^0.
|
|
67
|
+
"tsdown": "^0.16.0",
|
|
68
68
|
"tsx": "^4.20.6",
|
|
69
69
|
"typedoc": "^0.28.14",
|
|
70
70
|
"typedoc-plugin-markdown": "^4.9.0",
|
|
@@ -89,14 +89,14 @@
|
|
|
89
89
|
"dev": "tsdown --watch",
|
|
90
90
|
"test": "vitest",
|
|
91
91
|
"test:run": "vitest run",
|
|
92
|
-
"test:update-fixtures": "node ./dist/cli.
|
|
93
|
-
"benchmark": "tsdown -c benchmark/tsdown.config.ts && node ./benchmark/dist/benchmark.
|
|
92
|
+
"test:update-fixtures": "node ./dist/cli.mjs ./scripts/update-fixtures.ts",
|
|
93
|
+
"benchmark": "tsdown -c benchmark/tsdown.config.ts && node ./benchmark/dist/benchmark.mjs",
|
|
94
94
|
"typecheck": "tsc --noEmit",
|
|
95
95
|
"format": "prettier --cache --write .",
|
|
96
96
|
"release": "bumpp && unotp pnpm publish",
|
|
97
97
|
"docs:dev": "vitepress dev docs",
|
|
98
98
|
"docs:build": "vitepress build docs",
|
|
99
99
|
"docs:preview": "vitepress preview docs",
|
|
100
|
-
"docs:generate-reference": "node ./dist/cli.
|
|
100
|
+
"docs:generate-reference": "node ./dist/cli.mjs ./docs/.vitepress/scripts/generate-reference.ts"
|
|
101
101
|
}
|
|
102
102
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|