@zalom/plastic 1.0.0-alpha.18 → 1.0.0-alpha.19

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.
@@ -0,0 +1,25 @@
1
+ # Spec: <intent name>
2
+
3
+ ## Problem
4
+ (the problem, stated as a problem, not a solution)
5
+
6
+ ## Goals
7
+ - ...
8
+
9
+ ## Non-Goals
10
+ - ...
11
+
12
+ ## Approach
13
+ (the chosen approach, in prose)
14
+
15
+ ## Alternatives Considered
16
+ - <alternative> — not chosen because ...
17
+
18
+ ## Decisions
19
+ - ...
20
+
21
+ ## Acceptance Criteria
22
+ - [ ] ...
23
+
24
+ ## Open Questions
25
+ None
package/bin/install.js DELETED
@@ -1,29 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- // Thin shim — npx entry point that delegates to the Ruby installer.
4
- // All logic lives in scripts/install.rb. JS is only the distribution mechanism.
5
-
6
- import { execFileSync } from 'node:child_process'
7
- import { resolve } from 'node:path'
8
- import { existsSync } from 'node:fs'
9
-
10
- const packageRoot = new URL('..', import.meta.url).pathname
11
- const installer = resolve(packageRoot, 'scripts', 'install.rb')
12
-
13
- if (!existsSync(installer)) {
14
- console.error('Error: scripts/install.rb not found in package.')
15
- process.exit(1)
16
- }
17
-
18
- try {
19
- execFileSync('ruby', [installer, ...process.argv.slice(2)], {
20
- stdio: 'inherit',
21
- env: { ...process.env, PLASTIC_PACKAGE_ROOT: packageRoot },
22
- })
23
- } catch (err) {
24
- if (err.status) process.exit(err.status)
25
- console.error('Error: Ruby is required to install Plastic.')
26
- console.error(' macOS: Ruby is pre-installed')
27
- console.error(' Linux: sudo apt install ruby / dnf install ruby')
28
- process.exit(1)
29
- }