@yaakapp/cli 0.0.14 → 0.0.15
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/package.json +1 -4
- package/bin/cli.cjs +0 -14
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@yaakapp/cli",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.15",
|
4
4
|
"files": [
|
5
5
|
"install.cjs",
|
6
6
|
"uninstall.cjs",
|
@@ -9,8 +9,5 @@
|
|
9
9
|
"scripts": {
|
10
10
|
"postinstall": "node ./install.cjs",
|
11
11
|
"preuninstall": "node ./uninstall.cjs"
|
12
|
-
},
|
13
|
-
"bin": {
|
14
|
-
"yaakcli": "bin/yaakcli"
|
15
12
|
}
|
16
13
|
}
|
package/bin/cli.cjs
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env node
|
2
|
-
|
3
|
-
const path = require("path");
|
4
|
-
const childProcess = require("child_process");
|
5
|
-
|
6
|
-
// Windows binaries end with .exe so we need to special-case them.
|
7
|
-
const binaryName = process.platform === "win32" ? "yaakcli.exe" : "yaakcli";
|
8
|
-
|
9
|
-
module.exports.runBinary = function (...args) {
|
10
|
-
const binaryPath = path.join(__dirname, binaryName);
|
11
|
-
childProcess.execFileSync(binaryPath, args, {
|
12
|
-
stdio: "inherit",
|
13
|
-
});
|
14
|
-
};
|