xs-dev 1.7.0 → 1.7.1

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xs-dev",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "CLI for automating the setup and usage of Moddable XS tools",
5
5
  "type": "module",
6
6
  "types": "build/types/types.d.ts",
@@ -19,7 +19,6 @@
19
19
  "#src/": "./src/"
20
20
  },
21
21
  "scripts": {
22
- "postinstall": "node scripts/fix-liblzma-arm64.mjs",
23
22
  "xs-dev": "tsx src/cli.ts",
24
23
  "xs-dev:debug": "DEBUG=* tsx --trace-deprecation src/cli.ts",
25
24
  "format": "prettier --write **/*.{js,ts,json}",
@@ -45,8 +44,7 @@
45
44
  "build",
46
45
  "LICENSE",
47
46
  "README.md",
48
- "docs",
49
- "scripts"
47
+ "docs"
50
48
  ],
51
49
  "license": "MIT",
52
50
  "repository": {
@@ -68,7 +66,7 @@
68
66
  "windows-shortcuts": "^0.1.6"
69
67
  },
70
68
  "optionalDependencies": {
71
- "node-liblzma": "^3.2.0"
69
+ "node-liblzma": "^4.0.1"
72
70
  },
73
71
  "devDependencies": {
74
72
  "@astrojs/starlight": "^0.37.7",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xs-dev",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "CLI for automating the setup and usage of Moddable XS tools",
5
5
  "type": "module",
6
6
  "types": "build/types/types.d.ts",
@@ -19,7 +19,6 @@
19
19
  "#src/": "./src/"
20
20
  },
21
21
  "scripts": {
22
- "postinstall": "node scripts/fix-liblzma-arm64.mjs",
23
22
  "xs-dev": "tsx src/cli.ts",
24
23
  "xs-dev:debug": "DEBUG=* tsx --trace-deprecation src/cli.ts",
25
24
  "format": "prettier --write **/*.{js,ts,json}",
@@ -45,8 +44,7 @@
45
44
  "build",
46
45
  "LICENSE",
47
46
  "README.md",
48
- "docs",
49
- "scripts"
47
+ "docs"
50
48
  ],
51
49
  "license": "MIT",
52
50
  "repository": {
@@ -68,7 +66,7 @@
68
66
  "windows-shortcuts": "^0.1.6"
69
67
  },
70
68
  "optionalDependencies": {
71
- "node-liblzma": "^3.2.0"
69
+ "node-liblzma": "^4.0.1"
72
70
  },
73
71
  "devDependencies": {
74
72
  "@astrojs/starlight": "^0.37.7",
@@ -1,37 +0,0 @@
1
- /**
2
- * Workaround for node-liblzma missing darwin-arm64 prebuild.
3
- *
4
- * The darwin-x64 prebuild is a universal binary (x86_64 + arm64 slices),
5
- * so it works on Apple Silicon. node-gyp-build only looks in darwin-arm64/
6
- * on arm64 hosts, so we copy the universal binary there.
7
- *
8
- * Track upstream fix: https://github.com/oorabona/node-liblzma
9
- */
10
- 'use strict'
11
-
12
- import { existsSync, mkdirSync, copyFileSync } from 'node:fs'
13
- import { join } from 'node:path'
14
- import { platform, arch } from 'node:os'
15
- import { debuglog } from 'node:util'
16
-
17
- const debug = debuglog('xs-dev')
18
-
19
- if (platform() === 'darwin' && arch() === 'arm64') {
20
- try {
21
- const pkg = require.resolve('node-liblzma')
22
- const prebuildsDir = join(pkg, '..', '..', 'prebuilds')
23
- const src = join(prebuildsDir, 'darwin-x64', 'node-liblzma.node')
24
- const destDir = join(prebuildsDir, 'darwin-arm64')
25
- const dest = join(destDir, 'node-liblzma.node')
26
-
27
- if (existsSync(src) && !existsSync(dest)) {
28
- mkdirSync(destDir, { recursive: true })
29
- copyFileSync(src, dest)
30
- debug(
31
- 'node-liblzma: copied universal darwin-x64 prebuild to darwin-arm64',
32
- )
33
- }
34
- } catch {
35
- // node-liblzma is optional — silently skip if not installed
36
- }
37
- }