Skip to content

Commit da6ecc6

Browse files
committed
rename subpackages from @evancz/elm_* to @elm_binaries/*
1 parent d8f66b3 commit da6ecc6

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

installers/npm/PUBLISHING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Here's how to update the `npm` installer.
55
## 0. Overview
66

77
- There is one _main npm package_ called `elm`.
8-
- Then there is one _binary npm package_ for each platform, called for example `@evancz/elm_darwin_arm64`.
8+
- Then there is one _binary npm package_ for each platform, called for example `@elm_binaries/darwin_arm64`.
99

1010
The binary packages declare which OS and CPU they are compatible with. For example:
1111

@@ -17,9 +17,9 @@ The binary packages declare which OS and CPU they are compatible with. For examp
1717
The main npm package depend on the binary packages via [optional dependencies](https://docs.npmjs.com/cli/v9/configuring-npm/package-json#optionaldependencies):
1818

1919
```json
20-
"@evancz/elm_darwin_arm64": "0.19.1-0",
21-
"@evancz/elm_darwin_x64": "0.19.1-0",
22-
"@evancz/elm_linux_arm64": "0.19.1-0",
20+
"@elm_binaries/darwin_arm64": "0.19.1-0",
21+
"@elm_binaries/darwin_x64": "0.19.1-0",
22+
"@elm_binaries/linux_arm64": "0.19.1-0",
2323
...
2424
```
2525

@@ -60,7 +60,7 @@ Repeat this for all the packages mentioned in the previous section. This uses `p
6060
2. Double-check that you put the right binary in the right package: `file elm`
6161
3. Double-check that the file is executable: `ls -l elm`
6262
4. In `package.json` of the binary package, bump the version for example to `"0.19.1-2"`.
63-
5. In `package.json` of the main npm package, update `"optionalDependencies"` to point to the bumped version. For example: `"@evancz/elm_darwin_arm64": "0.19.1-2"`
63+
5. In `package.json` of the main npm package, update `"optionalDependencies"` to point to the bumped version. For example: `"@elm_binaries/darwin_arm64": "0.19.1-2"`
6464
6. Publish the package: `npm publish --access=public`
6565

6666
`--access=public` is needed because scoped packages are private by default.

installers/npm/binary.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = function()
1414
{
1515
// figure out package of binary
1616
var version = package.version.replace(/^(\d+\.\d+\.\d+).*$/, '$1'); // turn '1.2.3-alpha' into '1.2.3'
17-
var subPackageName = '@evancz/elm_' + process.platform + '_' + process.arch;
17+
var subPackageName = '@elm_binaries/' + process.platform + '_' + process.arch;
1818

1919
verifyPlatform(version, subPackageName);
2020

installers/npm/package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "elm",
3-
"version": "0.19.1-5",
3+
"version": "0.19.1-6",
44
"description": "Installer for Elm: just downloads the binary into node_modules",
55
"license": "BSD-3-Clause",
66
"repository": {
@@ -36,10 +36,9 @@
3636
],
3737
"bin": { "elm": "bin/elm" },
3838
"optionalDependencies": {
39-
"@evancz/elm_darwin_arm64": "0.19.1-0",
40-
"@evancz/elm_darwin_x64": "0.19.1-0",
41-
"@evancz/elm_linux_arm64": "0.19.1-0",
42-
"@evancz/elm_linux_x64": "0.19.1-0",
43-
"@evancz/elm_win32_x64": "0.19.1-0"
39+
"@elm_binaries/darwin_arm64": "0.19.1-0",
40+
"@elm_binaries/darwin_x64": "0.19.1-0",
41+
"@elm_binaries/linux_x64": "0.19.1-0",
42+
"@elm_binaries/win32_x64": "0.19.1-0"
4443
}
4544
}

0 commit comments

Comments
 (0)