unrun 0.2.12 → 0.2.13

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.
Files changed (2) hide show
  1. package/dist/cli.mjs +2 -1
  2. package/package.json +5 -4
package/dist/cli.mjs CHANGED
@@ -84,11 +84,12 @@ async function runCLI() {
84
84
  ];
85
85
  try {
86
86
  const { unrunCli } = await import("./index.mjs");
87
- await unrunCli({
87
+ const cliResult = await unrunCli({
88
88
  path: parsedArguments.filePath,
89
89
  debug: parsedArguments.debug,
90
90
  preset: parsedArguments.preset
91
91
  }, parsedArguments.afterArgs);
92
+ process.exit(cliResult.exitCode);
92
93
  } catch (error) {
93
94
  console.error(error.message);
94
95
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unrun",
3
- "version": "0.2.12",
3
+ "version": "0.2.13",
4
4
  "description": "A tool to load and execute any JavaScript or TypeScript code at runtime.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -43,11 +43,12 @@
43
43
  "rolldown": "1.0.0-beta.52"
44
44
  },
45
45
  "devDependencies": {
46
+ "@prettier/plugin-oxc": "^0.1.1",
46
47
  "@sxzz/eslint-config": "^7.3.2",
47
48
  "@sxzz/prettier-config": "^2.2.5",
48
49
  "@types/node": "^24.10.1",
49
50
  "acorn": "^8.15.0",
50
- "bumpp": "^10.3.1",
51
+ "bumpp": "^10.3.2",
51
52
  "bundle-require": "^5.1.0",
52
53
  "config": "^4.1.1",
53
54
  "consola": "^3.4.2",
@@ -66,7 +67,7 @@
66
67
  "nano-jsx": "^0.2.1",
67
68
  "preact": "^10.27.2",
68
69
  "preact-render-to-string": "^6.6.3",
69
- "prettier": "^3.6.2",
70
+ "prettier": "^3.7.1",
70
71
  "react": "^19.2.0",
71
72
  "react-dom": "^19.2.0",
72
73
  "reflect-metadata": "^0.2.2",
@@ -94,7 +95,7 @@
94
95
  },
95
96
  "prettier": "@sxzz/prettier-config",
96
97
  "scripts": {
97
- "lint": "eslint --cache .",
98
+ "lint": "eslint --no-cache .",
98
99
  "lint:fix": "pnpm run lint --fix",
99
100
  "build": "tsdown",
100
101
  "dev": "tsdown --watch",