typeslayer 0.1.5 → 0.1.7

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/typeslayer.js CHANGED
@@ -22,9 +22,6 @@ const getBinaryInfo = () => {
22
22
  if (plat === "linux" && architecture === "x64") {
23
23
  platformDir = "linux-x64";
24
24
  binaryName = "typeslayer";
25
- } else if (plat === "darwin" && architecture === "x64") {
26
- platformDir = "darwin-x64";
27
- binaryName = "typeslayer";
28
25
  } else if (plat === "darwin" && architecture === "arm64") {
29
26
  platformDir = "darwin-arm64";
30
27
  binaryName = "typeslayer";
package/package.json CHANGED
@@ -1,49 +1,55 @@
1
1
  {
2
- "name": "typeslayer",
3
- "version": "0.1.5",
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
- }
2
+ "name": "typeslayer",
3
+ "version": "0.1.7",
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": "https://github.com/dimitropoulos/typeslayer.git",
20
+ "directory": "packages/typeslayer"
21
+ },
22
+ "bugs": {
23
+ "url": "https://github.com/dimitropoulos/typeslayer/issues"
24
+ },
25
+ "homepage": "https://github.com/dimitropoulos/typeslayer#readme",
26
+ "bin": {
27
+ "typeslayer": "bin/typeslayer.js"
28
+ },
29
+ "files": [
30
+ "bin",
31
+ "scripts"
32
+ ],
33
+ "os": [
34
+ "linux",
35
+ "darwin",
36
+ "win32"
37
+ ],
38
+ "cpu": [
39
+ "x64",
40
+ "arm64"
41
+ ],
42
+ "engines": {
43
+ "node": ">=24.0.0",
44
+ "pnpm": ">=10.0.0"
45
+ },
46
+ "packageManager": "pnpm@10.6.5",
47
+ "scripts": {
48
+ "postinstall": "node scripts/postinstall.js"
49
+ },
50
+ "optionalDependencies": {
51
+ "@typeslayer/linux-x64": "0.1.7",
52
+ "@typeslayer/darwin-arm64": "0.1.7",
53
+ "@typeslayer/win32-x64": "0.1.7"
54
+ }
49
55
  }
@@ -21,15 +21,6 @@ if (process.env.TYPESLAYER_SKIP_POSTINSTALL) {
21
21
  process.exit(0);
22
22
  }
23
23
 
24
- // Also skip if we're in a pnpm workspace (local development)
25
- if (
26
- process.env.PNPM_HOME ||
27
- process.env.npm_config_user_agent?.includes("pnpm")
28
- ) {
29
- console.log("⏭️ Skipping typeslayer binary download (in pnpm workspace).");
30
- process.exit(0);
31
- }
32
-
33
24
  const getBinaryInfo = () => {
34
25
  const plat = platform();
35
26
  const architecture = arch();
@@ -40,10 +31,6 @@ const getBinaryInfo = () => {
40
31
  platformDir = "linux-x64";
41
32
  binaryName = "typeslayer";
42
33
  npmPackage = "@typeslayer/linux-x64";
43
- } else if (plat === "darwin" && architecture === "x64") {
44
- platformDir = "darwin-x64";
45
- binaryName = "typeslayer";
46
- npmPackage = "@typeslayer/darwin-x64";
47
34
  } else if (plat === "darwin" && architecture === "arm64") {
48
35
  platformDir = "darwin-arm64";
49
36
  binaryName = "typeslayer";
@@ -63,7 +50,7 @@ const getBinaryInfo = () => {
63
50
  (async () => {
64
51
  try {
65
52
  const { platformDir, binaryName, npmPackage } = getBinaryInfo();
66
- const binariesDir = join(__dirname, "..", "..", "builds", platformDir);
53
+ const binariesDir = join(__dirname, "..", "binaries", platformDir);
67
54
  const binaryPath = join(binariesDir, binaryName);
68
55
 
69
56
  // Skip if binary already exists
@@ -105,7 +92,7 @@ const getBinaryInfo = () => {
105
92
  stdio: "inherit",
106
93
  });
107
94
 
108
- // Copy the binary from node_modules to our builds directory
95
+ // Copy the binary from node_modules to our binaries directory
109
96
  const nodeModulesBinaryPath = join(
110
97
  __dirname,
111
98
  "..",