@toothfairyai/tfcode 1.0.1 → 1.0.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/LICENSE +0 -0
- package/bin/tfcode.js +8 -9
- package/package.json +33 -1
- package/postinstall.mjs +0 -0
- package/toothfairyai-tfcode-1.0.1.tgz +0 -0
package/LICENSE
CHANGED
|
File without changes
|
package/bin/tfcode.js
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const { spawn } = require(
|
|
3
|
-
const path = require(
|
|
4
|
-
const fs = require(
|
|
2
|
+
const { spawn } = require('child_process')
|
|
3
|
+
const path = require('path')
|
|
4
|
+
const fs = require('fs')
|
|
5
5
|
|
|
6
|
-
const binDir = path.join(__dirname,
|
|
7
|
-
const binary = process.platform ===
|
|
6
|
+
const binDir = path.join(__dirname, 'bin')
|
|
7
|
+
const binary = process.platform === 'win32' ? 'tfcode.exe' : 'tfcode'
|
|
8
8
|
const binaryPath = path.join(binDir, binary)
|
|
9
9
|
|
|
10
10
|
if (!fs.existsSync(binaryPath)) {
|
|
11
|
-
console.error(
|
|
12
|
-
console.error("Try running: npm rebuild @toothfairyai/tfcode")
|
|
11
|
+
console.error('tfcode binary not found. Run: npm install @toothfairyai/tfcode')
|
|
13
12
|
process.exit(1)
|
|
14
13
|
}
|
|
15
14
|
|
|
16
15
|
const child = spawn(binaryPath, process.argv.slice(2), {
|
|
17
|
-
stdio:
|
|
16
|
+
stdio: 'inherit',
|
|
18
17
|
env: process.env
|
|
19
18
|
})
|
|
20
19
|
|
|
21
|
-
child.on(
|
|
20
|
+
child.on('exit', (code) => process.exit(code || 0))
|
package/package.json
CHANGED
|
@@ -1 +1,33 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"name": "@toothfairyai/tfcode",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"bin": {
|
|
5
|
+
"tfcode": "./bin/tfcode.js"
|
|
6
|
+
},
|
|
7
|
+
"scripts": {
|
|
8
|
+
"postinstall": "node ./postinstall.mjs"
|
|
9
|
+
},
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"optionalDependencies": {
|
|
12
|
+
"@toothfairyai/tfcode-linux-arm64": "1.0.2",
|
|
13
|
+
"@toothfairyai/tfcode-windows-x64": "1.0.2",
|
|
14
|
+
"@toothfairyai/tfcode-linux-x64-baseline-musl": "1.0.2",
|
|
15
|
+
"@toothfairyai/tfcode-darwin-x64-baseline": "1.0.2",
|
|
16
|
+
"@toothfairyai/tfcode-linux-x64-musl": "1.0.2",
|
|
17
|
+
"@toothfairyai/tfcode-windows-x64-baseline": "1.0.2",
|
|
18
|
+
"@toothfairyai/tfcode-linux-arm64-musl": "1.0.2",
|
|
19
|
+
"@toothfairyai/tfcode-windows-arm64": "1.0.2",
|
|
20
|
+
"@toothfairyai/tfcode-linux-x64": "1.0.2",
|
|
21
|
+
"@toothfairyai/tfcode-darwin-x64": "1.0.2",
|
|
22
|
+
"@toothfairyai/tfcode-linux-x64-baseline": "1.0.2",
|
|
23
|
+
"@toothfairyai/tfcode-darwin-arm64": "1.0.2"
|
|
24
|
+
},
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=18"
|
|
27
|
+
},
|
|
28
|
+
"homepage": "https://toothfairyai.com/developers/tfcode",
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git"
|
|
32
|
+
}
|
|
33
|
+
}
|
package/postinstall.mjs
CHANGED
|
File without changes
|
|
Binary file
|