planx 19.25.0 → 19.27.0

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 (3) hide show
  1. package/main.js +22 -0
  2. package/package.json +10 -7
  3. package/index.js +0 -0
package/main.js ADDED
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env node
2
+
3
+ // packages/@machina.at/planx/src/main.ts
4
+ import { spawnSync } from "node:child_process";
5
+ import { resolve, dirname } from "node:path";
6
+ import { fileURLToPath } from "node:url";
7
+ import { existsSync } from "node:fs";
8
+ var __dirname = dirname(fileURLToPath(import.meta.url));
9
+ function findMachinaBin() {
10
+ const nmBin = resolve(__dirname, "../node_modules/.bin/machina");
11
+ if (existsSync(nmBin))
12
+ return nmBin;
13
+ const npxBin = resolve(__dirname, "../../.bin/machina");
14
+ if (existsSync(npxBin))
15
+ return npxBin;
16
+ return "machina";
17
+ }
18
+ var result = spawnSync(findMachinaBin(), process.argv.slice(2), {
19
+ stdio: "inherit",
20
+ env: process.env
21
+ });
22
+ process.exit(result.status ?? 1);
package/package.json CHANGED
@@ -1,15 +1,18 @@
1
1
  {
2
2
  "name": "planx",
3
- "version": "19.25.0",
4
- "description": "planx",
3
+ "version": "19.27.0",
4
+ "description": "planx - CLI wrapper for @machina.at/cli",
5
5
  "type": "module",
6
+ "bin": {
7
+ "planx": "./main.js"
8
+ },
6
9
  "exports": {
7
- ".": "./src/index.ts"
10
+ ".": "./main.js"
11
+ },
12
+ "dependencies": {
13
+ "@machina.at/cli": "19.27.0"
8
14
  },
9
15
  "publishConfig": {
10
- "access": "public",
11
- "exports": {
12
- ".": "./dist/index.js"
13
- }
16
+ "access": "public"
14
17
  }
15
18
  }
package/index.js DELETED
File without changes