easyorders 0.1.1 → 0.1.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/cli/bin/cli.js +17 -0
- package/package.json +4 -4
package/cli/bin/cli.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const path = require("path");
|
|
4
|
+
const { execFileSync } = require("child_process");
|
|
5
|
+
|
|
6
|
+
// Resolve tsx from this package's own node_modules
|
|
7
|
+
const tsxBin = path.resolve(__dirname, "..", "..", "node_modules", ".bin", "tsx");
|
|
8
|
+
const cliScript = path.resolve(__dirname, "cli.ts");
|
|
9
|
+
|
|
10
|
+
try {
|
|
11
|
+
execFileSync(tsxBin, [cliScript, ...process.argv.slice(2)], {
|
|
12
|
+
stdio: "inherit",
|
|
13
|
+
env: process.env,
|
|
14
|
+
});
|
|
15
|
+
} catch (err) {
|
|
16
|
+
process.exit(err.status ?? 1);
|
|
17
|
+
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easyorders",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "CLI tool for creating and developing Easy Orders themes",
|
|
5
5
|
"bin": {
|
|
6
|
-
"easyorders": "cli/bin/cli.
|
|
6
|
+
"easyorders": "cli/bin/cli.js"
|
|
7
7
|
},
|
|
8
8
|
"files": [
|
|
9
9
|
"cli/"
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
"cloudflared": "^0.7.1",
|
|
25
25
|
"cors": "^2.8.6",
|
|
26
26
|
"dotenv": "^17.4.0",
|
|
27
|
-
"express": "^4.21.2"
|
|
27
|
+
"express": "^4.21.2",
|
|
28
|
+
"tsx": "^4.19.2"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
31
|
"@types/cors": "^2.8.19",
|
|
31
32
|
"@types/express": "^4.17.21",
|
|
32
33
|
"@types/node": "^22.10.0",
|
|
33
34
|
"concurrently": "^9.2.1",
|
|
34
|
-
"tsx": "^4.19.2",
|
|
35
35
|
"typescript": "^5.7.2"
|
|
36
36
|
}
|
|
37
37
|
}
|