@withgraphite/graphite-cli 1.7.20 → 1.8.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.
- package/bin/gt.js +2 -0
- package/package.json +18 -13
- package/check-node-version.js +0 -1
- package/graphite.js +0 -3
- package/graphite.js.LICENSE.txt +0 -39
package/bin/gt.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";const{execFileSync}=require("child_process"),platform=process.platform,arch=process.arch,platformKey=`${platform}-${arch}`,binaries={"darwin-arm64":"@withgraphite/graphite-cli-darwin-arm64","darwin-x64":"@withgraphite/graphite-cli-darwin-x64","linux-x64":"@withgraphite/graphite-cli-linux-x64","linux-arm64":"@withgraphite/graphite-cli-linux-arm64","win32-x64":"@withgraphite/graphite-cli-win32-x64"};function main(){const r=binaries[platformKey];let e;r||(console.error(`Unsupported platform: ${platformKey}`),console.error("Supported platforms: "+Object.keys(binaries).join(", ")),process.exit(1));try{const o="win32"===platform?"bin/gt.exe":"bin/gt";e=require.resolve(`${r}/${o}`)}catch{console.error(`Failed to find binary for platform: ${platformKey}`),console.error(`Package ${r} may not be installed.`),console.error(""),console.error("Please see our docs or contact support:"),console.error("https://graphite.com/docs/cli-overview"),console.error("https://support.graphite.com"),process.exit(1)}try{execFileSync(e,process.argv.slice(2),{stdio:"inherit"})}catch(r){throw"number"==typeof r.status&&process.exit(r.status),r}}main();
|
package/package.json
CHANGED
|
@@ -1,26 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@withgraphite/graphite-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"license": "None",
|
|
5
|
-
"main": "./graphite.js",
|
|
6
5
|
"homepage": "https://graphite.com/docs/cli-overview",
|
|
7
6
|
"gtInstallationMethod": "npm",
|
|
8
|
-
"
|
|
9
|
-
|
|
7
|
+
"files": ["bin/"],
|
|
8
|
+
"optionalDependencies": {
|
|
9
|
+
"@withgraphite/graphite-cli-darwin-arm64": "1.8.0",
|
|
10
|
+
"@withgraphite/graphite-cli-darwin-x64": "1.8.0",
|
|
11
|
+
"@withgraphite/graphite-cli-linux-x64": "1.8.0",
|
|
12
|
+
"@withgraphite/graphite-cli-linux-arm64": "1.8.0",
|
|
13
|
+
"@withgraphite/graphite-cli-win32-x64": "1.8.0"
|
|
10
14
|
},
|
|
11
15
|
"bin": {
|
|
12
|
-
"graphite": "./
|
|
13
|
-
"gt": "./
|
|
14
|
-
},
|
|
15
|
-
"scripts": {
|
|
16
|
-
"postinstall": "node check-node-version.js"
|
|
17
|
-
},
|
|
18
|
-
"engines": {
|
|
19
|
-
"node": ">=16"
|
|
16
|
+
"graphite": "./bin/gt.js",
|
|
17
|
+
"gt": "./bin/gt.js"
|
|
20
18
|
},
|
|
21
19
|
"pkg": {
|
|
22
20
|
"scripts": "*.js",
|
|
23
|
-
"assets": [
|
|
21
|
+
"assets": [
|
|
22
|
+
"build/**/*",
|
|
23
|
+
"package.json",
|
|
24
|
+
"node_modules/better-sqlite3/build/Release/*.node",
|
|
25
|
+
"node_modules/better-sqlite3/**/*",
|
|
26
|
+
"node_modules/bindings/**/*",
|
|
27
|
+
"node_modules/file-uri-to-path/**/*"
|
|
28
|
+
],
|
|
24
29
|
"public-packages": "*"
|
|
25
30
|
}
|
|
26
31
|
}
|
package/check-node-version.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
if(!require("semver").satisfies(process.versions.node,">=18"))throw new Error("[31mYour NodeJS version is "+process.versions.node+".[0m\n[31mGraphite is only supported on v18 or higher.[0m");
|