@bastani/atomic 0.7.1 → 0.7.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.
Files changed (2) hide show
  1. package/package.json +7 -11
  2. package/postinstall.mjs +0 -47
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/atomic",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "Configuration management CLI for coding agents",
5
5
  "repository": {
6
6
  "type": "git",
@@ -11,19 +11,15 @@
11
11
  },
12
12
  "files": [
13
13
  "bin",
14
- "postinstall.mjs",
15
14
  "LICENSE"
16
15
  ],
17
- "scripts": {
18
- "postinstall": "node ./postinstall.mjs"
19
- },
20
16
  "optionalDependencies": {
21
- "@bastani/atomic-linux-x64": "0.7.1",
22
- "@bastani/atomic-linux-arm64": "0.7.1",
23
- "@bastani/atomic-darwin-x64": "0.7.1",
24
- "@bastani/atomic-darwin-arm64": "0.7.1",
25
- "@bastani/atomic-windows-x64": "0.7.1",
26
- "@bastani/atomic-windows-arm64": "0.7.1"
17
+ "@bastani/atomic-linux-x64": "0.7.2",
18
+ "@bastani/atomic-linux-arm64": "0.7.2",
19
+ "@bastani/atomic-darwin-x64": "0.7.2",
20
+ "@bastani/atomic-darwin-arm64": "0.7.2",
21
+ "@bastani/atomic-windows-x64": "0.7.2",
22
+ "@bastani/atomic-windows-arm64": "0.7.2"
27
23
  },
28
24
  "engines": {
29
25
  "node": ">=20"
package/postinstall.mjs DELETED
@@ -1,47 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- import { createRequire } from "node:module";
4
-
5
- const require = createRequire(import.meta.url);
6
-
7
- const PLATFORM_MAP = {
8
- linux: "linux",
9
- darwin: "darwin",
10
- win32: "windows",
11
- };
12
-
13
- const ARCH_MAP = {
14
- x64: "x64",
15
- arm64: "arm64",
16
- };
17
-
18
- const SUPPORTED = [
19
- "linux-x64",
20
- "linux-arm64",
21
- "darwin-x64",
22
- "darwin-arm64",
23
- "windows-x64",
24
- "windows-arm64",
25
- ];
26
-
27
- function reportMissingBinary() {
28
- process.stderr.write(
29
- `[atomic] No prebuilt binary available for ${process.platform}-${process.arch}.\n` +
30
- `Supported targets: ${SUPPORTED.join(", ")}.\n` +
31
- `If you need atomic on this platform, please open an issue at https://github.com/flora131/atomic/issues.\n`
32
- );
33
- process.exit(0);
34
- }
35
-
36
- const os = PLATFORM_MAP[process.platform];
37
- const cpu = ARCH_MAP[process.arch];
38
-
39
- if (!os || !cpu) reportMissingBinary();
40
-
41
- try {
42
- require.resolve(`@bastani/atomic-${os}-${cpu}/package.json`);
43
- // Found — exit silently.
44
- process.exit(0);
45
- } catch {
46
- reportMissingBinary();
47
- }