typeslayer 0.1.3 → 0.1.4
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/README.md +2 -0
- package/bin/typeslayer.js +3 -1
- package/package.json +51 -97
- package/scripts/postinstall.js +8 -0
package/README.md
CHANGED
|
@@ -30,6 +30,8 @@ in the root package you want to inspect (i.e. colocated to your package.json). T
|
|
|
30
30
|
- why isn't this just a CLI tool?
|
|
31
31
|
- A goal of the project is show intuitive/beautiful interactive visualizations like treemaps and force graphs, inherently not something a terminal can provide.
|
|
32
32
|
- I don't like CLI tools. I view them as a last resort, at this point in engineering history. If you're someone that stays up late into the night staring at your dotfiles from neovim... I'm happy for you. Be happy for me too?
|
|
33
|
+
- will this work with ts-go?
|
|
34
|
+
- that's the hope but it ain't ready yet on the ts-go side
|
|
33
35
|
|
|
34
36
|
## Data / Security
|
|
35
37
|
|
package/bin/typeslayer.js
CHANGED
|
@@ -45,7 +45,9 @@ try {
|
|
|
45
45
|
const binaryInfo = getBinaryInfo();
|
|
46
46
|
|
|
47
47
|
if (!existsSync(binaryInfo.path)) {
|
|
48
|
-
console.error(
|
|
48
|
+
console.error(
|
|
49
|
+
`\n⚠️ Binary not found for ${binaryInfo.platform}. Attempting download...`,
|
|
50
|
+
);
|
|
49
51
|
const postinstallPath = join(__dirname, "..", "scripts", "postinstall.js");
|
|
50
52
|
const res = spawnSync(process.execPath, [postinstallPath], {
|
|
51
53
|
stdio: "inherit",
|
package/package.json
CHANGED
|
@@ -1,99 +1,53 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"dependencies": {
|
|
54
|
-
"@tauri-apps/api": "2.9.0",
|
|
55
|
-
"@tauri-apps/plugin-clipboard-manager": "~2",
|
|
56
|
-
"@tauri-apps/plugin-dialog": "2.4.2",
|
|
57
|
-
"@tauri-apps/plugin-opener": "2.5.2",
|
|
58
|
-
"@tauri-apps/plugin-upload": "^2.3.2",
|
|
59
|
-
"react": "19.2.0",
|
|
60
|
-
"react-dom": "19.2.0"
|
|
61
|
-
},
|
|
62
|
-
"devDependencies": {
|
|
63
|
-
"@emotion/react": "11.14.0",
|
|
64
|
-
"@emotion/styled": "11.14.1",
|
|
65
|
-
"@fastify/cors": "11.1.0",
|
|
66
|
-
"@fastify/static": "8.3.0",
|
|
67
|
-
"@fontsource/roboto": "5.2.9",
|
|
68
|
-
"@mui/icons-material": "7.3.5",
|
|
69
|
-
"@mui/material": "7.3.5",
|
|
70
|
-
"@mui/x-tree-view": "8.19.0",
|
|
71
|
-
"@tanstack/react-query": "5.90.10",
|
|
72
|
-
"@tanstack/react-router": "1.139.3",
|
|
73
|
-
"@tauri-apps/cli": "2.9.4",
|
|
74
|
-
"@types/mime-types": "3.0.1",
|
|
75
|
-
"@types/node": "24.10.1",
|
|
76
|
-
"@types/ramda": "0.31.1",
|
|
77
|
-
"@types/react": "19.2.6",
|
|
78
|
-
"@types/react-dom": "19.2.3",
|
|
79
|
-
"@typeslayer/analyze-trace": "workspace:*",
|
|
80
|
-
"@typeslayer/validate": "workspace:*",
|
|
81
|
-
"@vitejs/plugin-react": "5.1.1",
|
|
82
|
-
"concurrently": "9.2.1",
|
|
83
|
-
"fastify": "5.6.2",
|
|
84
|
-
"mime-types": "3.0.2",
|
|
85
|
-
"ramda": "0.32.0",
|
|
86
|
-
"ramda-adjunct": "5.1.0",
|
|
87
|
-
"react": "19.2.0",
|
|
88
|
-
"react-dom": "19.2.0",
|
|
89
|
-
"tsx": "4.20.6",
|
|
90
|
-
"typescript": "5.9.3",
|
|
91
|
-
"vite": "7.2.4",
|
|
92
|
-
"zod": "4.1.12"
|
|
93
|
-
},
|
|
94
|
-
"pnpm": {
|
|
95
|
-
"onlyBuiltDependencies": [
|
|
96
|
-
"esbuild"
|
|
97
|
-
]
|
|
98
|
-
}
|
|
2
|
+
"name": "typeslayer",
|
|
3
|
+
"version": "0.1.4",
|
|
4
|
+
"description": "Slay your TypeScript types",
|
|
5
|
+
"private": false,
|
|
6
|
+
"type": "module",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"typescript",
|
|
9
|
+
"ts",
|
|
10
|
+
"tauri",
|
|
11
|
+
"desktop",
|
|
12
|
+
"benchmarking",
|
|
13
|
+
"performance"
|
|
14
|
+
],
|
|
15
|
+
"author": "Dimitri Mitropoulos",
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/dimitropoulos/typeslayer.git"
|
|
20
|
+
},
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://github.com/dimitropoulos/typeslayer/issues"
|
|
23
|
+
},
|
|
24
|
+
"homepage": "https://github.com/dimitropoulos/typeslayer#readme",
|
|
25
|
+
"bin": {
|
|
26
|
+
"typeslayer": "bin/typeslayer.js"
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"bin",
|
|
30
|
+
"scripts"
|
|
31
|
+
],
|
|
32
|
+
"os": [
|
|
33
|
+
"linux",
|
|
34
|
+
"darwin",
|
|
35
|
+
"win32"
|
|
36
|
+
],
|
|
37
|
+
"cpu": [
|
|
38
|
+
"x64",
|
|
39
|
+
"arm64"
|
|
40
|
+
],
|
|
41
|
+
"engines": {
|
|
42
|
+
"node": ">=24.0.0",
|
|
43
|
+
"pnpm": ">=10.0.0"
|
|
44
|
+
},
|
|
45
|
+
"packageManager": "pnpm@10.6.5",
|
|
46
|
+
"scripts": {
|
|
47
|
+
"postinstall": "node scripts/postinstall.js",
|
|
48
|
+
"dev": "vite",
|
|
49
|
+
"build": "tsc && vite build",
|
|
50
|
+
"preview": "vite preview",
|
|
51
|
+
"tauri": "tauri"
|
|
52
|
+
}
|
|
99
53
|
}
|
package/scripts/postinstall.js
CHANGED
|
@@ -11,6 +11,14 @@ const __dirname = dirname(__filename);
|
|
|
11
11
|
|
|
12
12
|
const PACKAGE_VERSION = process.env.npm_package_version;
|
|
13
13
|
|
|
14
|
+
// Allow CI or callers to skip binary download (release assets may not exist yet in same run)
|
|
15
|
+
if (process.env.TYPESLAYER_SKIP_POSTINSTALL) {
|
|
16
|
+
console.log(
|
|
17
|
+
"⏭️ Skipping typeslayer binary download (TYPESLAYER_SKIP_POSTINSTALL set).",
|
|
18
|
+
);
|
|
19
|
+
process.exit(0);
|
|
20
|
+
}
|
|
21
|
+
|
|
14
22
|
const getBinaryInfo = () => {
|
|
15
23
|
const plat = platform();
|
|
16
24
|
const architecture = arch();
|