desen 1.0.0-draft.1 → 1.0.0-draft.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.
Potentially problematic release.
This version of desen might be problematic. Click here for more details.
- package/.turbo/turbo-build.log +1 -1
- package/dist/bin.d.ts +3 -0
- package/dist/bin.js +17 -0
- package/dist/postinstall.d.ts +0 -0
- package/dist/postinstall.js +3 -0
- package/package.json +8 -3
- package/src/bin.ts +17 -0
- package/src/postinstall.ts +2 -0
package/.turbo/turbo-build.log
CHANGED
package/dist/bin.d.ts
ADDED
package/dist/bin.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
const args = process.argv.slice(2);
|
|
4
|
+
const command = args[0];
|
|
5
|
+
if (command === "daemon" || command === "audit") {
|
|
6
|
+
// This will execute the exported CLI process from desen-cli since it runs side-effects directly
|
|
7
|
+
require("desen-cli");
|
|
8
|
+
}
|
|
9
|
+
else {
|
|
10
|
+
console.log(`
|
|
11
|
+
\x1b[36m💠 DESEN Protocol CLI\x1b[0m
|
|
12
|
+
|
|
13
|
+
Usage:
|
|
14
|
+
\x1b[1mnpx desen daemon\x1b[0m Start the local synchronization daemon
|
|
15
|
+
\x1b[1mnpx desen audit\x1b[0m Audit DESEN JSON files
|
|
16
|
+
`);
|
|
17
|
+
}
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "desen",
|
|
3
|
-
"version": "1.0.0-draft.
|
|
3
|
+
"version": "1.0.0-draft.2",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -8,14 +8,18 @@
|
|
|
8
8
|
"./core": "./dist/core.js",
|
|
9
9
|
"./cli": "./dist/cli.js"
|
|
10
10
|
},
|
|
11
|
+
"bin": {
|
|
12
|
+
"desen": "./dist/bin.js"
|
|
13
|
+
},
|
|
11
14
|
"dependencies": {
|
|
12
15
|
"react": "^18.2.0",
|
|
13
16
|
"react-dom": "^18.2.0",
|
|
14
|
-
"desen-core": "1.0.0-draft.
|
|
15
|
-
"desen-cli": "1.0.0-draft.
|
|
17
|
+
"desen-core": "1.0.0-draft.2",
|
|
18
|
+
"desen-cli": "1.0.0-draft.2"
|
|
16
19
|
},
|
|
17
20
|
"devDependencies": {
|
|
18
21
|
"typescript": "^5.0.0",
|
|
22
|
+
"@types/node": "^20.0.0",
|
|
19
23
|
"@types/react": "^18.2.0",
|
|
20
24
|
"@types/react-dom": "^18.2.0"
|
|
21
25
|
},
|
|
@@ -24,6 +28,7 @@
|
|
|
24
28
|
"react-dom": "^18.2.0"
|
|
25
29
|
},
|
|
26
30
|
"scripts": {
|
|
31
|
+
"postinstall": "node ./dist/postinstall.js 2>/dev/null || true",
|
|
27
32
|
"build": "tsc",
|
|
28
33
|
"dev": "tsc -w",
|
|
29
34
|
"clean": "rm -rf dist"
|
package/src/bin.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const args = process.argv.slice(2);
|
|
4
|
+
const command = args[0];
|
|
5
|
+
|
|
6
|
+
if (command === "daemon" || command === "audit") {
|
|
7
|
+
// This will execute the exported CLI process from desen-cli since it runs side-effects directly
|
|
8
|
+
require("desen-cli");
|
|
9
|
+
} else {
|
|
10
|
+
console.log(`
|
|
11
|
+
\x1b[36m💠 DESEN Protocol CLI\x1b[0m
|
|
12
|
+
|
|
13
|
+
Usage:
|
|
14
|
+
\x1b[1mnpx desen daemon\x1b[0m Start the local synchronization daemon
|
|
15
|
+
\x1b[1mnpx desen audit\x1b[0m Audit DESEN JSON files
|
|
16
|
+
`);
|
|
17
|
+
}
|