@kolbo/nakedjim 1.0.6
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 +20 -0
- package/postinstall.js +21 -0
package/package.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kolbo/nakedjim",
|
|
3
|
+
"version": "1.0.6",
|
|
4
|
+
"description": "NakedJim Code — powered by Kolbo.AI",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"homepage": "https://kolbo.ai/cli",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/Zoharvan12/kolbo-code"
|
|
10
|
+
},
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"@kolbo/kolbo-code": "1.0.6"
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"postinstall": "node postinstall.js"
|
|
19
|
+
}
|
|
20
|
+
}
|
package/postinstall.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const os = require("os")
|
|
3
|
+
const path = require("path")
|
|
4
|
+
const fs = require("fs")
|
|
5
|
+
|
|
6
|
+
const profile = {
|
|
7
|
+
"id": "nakedjim",
|
|
8
|
+
"name": "NakedJim Code",
|
|
9
|
+
"apiBase": "https://nakedjimapi.kolbo.ai/api",
|
|
10
|
+
"appBase": "https://nakedjim.kolbo.ai"
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const xdg = process.env.XDG_CONFIG_HOME
|
|
14
|
+
const configDir = xdg
|
|
15
|
+
? path.join(xdg, "kolbo")
|
|
16
|
+
: path.join(os.homedir(), ".config", "kolbo")
|
|
17
|
+
|
|
18
|
+
fs.mkdirSync(configDir, { recursive: true })
|
|
19
|
+
const dest = path.join(configDir, "partner.json")
|
|
20
|
+
fs.writeFileSync(dest, JSON.stringify(profile, null, 2))
|
|
21
|
+
console.log("✓ " + "NakedJim Code" + " configured at " + dest)
|