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.
@@ -83,7 +83,7 @@ async function runCLI() {
83
83
  ...parsedArguments.afterArgs
84
84
  ];
85
85
  try {
86
- const { unrunCli } = await import("./index.js");
86
+ const { unrunCli } = await import("./index.mjs");
87
87
  await unrunCli({
88
88
  path: parsedArguments.filePath,
89
89
  debug: parsedArguments.debug,
@@ -1,3 +1,3 @@
1
- import { n as unrunCli, r as unrunSync, t as unrun } from "./src-CRcGnzTd.js";
1
+ import { n as unrunCli, r as unrunSync, t as unrun } from "./src-Ci6YaVK-.mjs";
2
2
 
3
3
  export { unrun, unrunCli, unrunSync };
@@ -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.
@@ -1,4 +1,4 @@
1
- import { t as unrun } from "../src-CRcGnzTd.js";
1
+ import { t as unrun } from "../src-Ci6YaVK-.mjs";
2
2
  import { runAsWorker } from "synckit";
3
3
 
4
4
  //#region src/sync/worker.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unrun",
3
- "version": "0.2.1",
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.js",
21
- "module": "./dist/index.js",
22
- "types": "./dist/index.d.ts",
20
+ "main": "./dist/index.mjs",
21
+ "module": "./dist/index.mjs",
22
+ "types": "./dist/index.d.mts",
23
23
  "exports": {
24
- ".": "./dist/index.js",
24
+ ".": "./dist/index.mjs",
25
25
  "./package.json": "./package.json"
26
26
  },
27
27
  "bin": {
28
- "unrun": "./dist/cli.js"
28
+ "unrun": "./dist/cli.mjs"
29
29
  },
30
30
  "publishConfig": {
31
31
  "access": "public"
32
32
  },
33
33
  "dependencies": {
34
- "@oxc-project/runtime": "^0.95.0",
35
- "rolldown": "1.0.0-beta.45",
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.15.9",
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.js ./scripts/update-fixtures.ts",
93
- "benchmark": "tsdown -c benchmark/tsdown.config.ts && node ./benchmark/dist/benchmark.js",
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.js ./docs/.vitepress/scripts/generate-reference.ts"
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