Skip to content

Commit 81f56f8

Browse files
authored
Adding NPM Melkeydev organization scope (#418)
1 parent 03bdd5b commit 81f56f8

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ source ~/.zshrc
5858

5959
### NPM Install
6060
```bash
61-
npm install -g go-blueprint
61+
npm install -g @melkeydev/go-blueprint
6262
```
6363

6464
### Homebrew Install

docs/docs/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ This command installs the Go-Blueprint binary, automatically binding it to your
4141
If you prefer using Node.js package manager, you can install Go-Blueprint via NPM. This method is convenient for developers who are already working in JavaScript/Node.js environments and want to integrate Go-Blueprint into their existing workflow.
4242
4343
```bash
44-
npm install -g go-blueprint
44+
npm install -g @melkeydev/go-blueprint
4545
```
4646
4747
The `-g` flag installs Go-Blueprint globally, making it accessible from any directory on your system.

scripts/create-npm-packages.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
set -euo pipefail
44

55
VERSION="$1"
6-
PACKAGE_NAME="go-blueprint"
6+
PACKAGE_NAME="@melkeydev/go-blueprint"
77
MAIN_PACKAGE_DIR="npm-package"
88
PLATFORM_PACKAGES_DIR="platform-packages"
99

@@ -55,7 +55,7 @@ for archive in dist/*.tar.gz dist/*.zip; do
5555

5656
echo " Creating package for platform: $platform_key"
5757

58-
platform_package_dir="$PLATFORM_PACKAGES_DIR/$PACKAGE_NAME-$platform_key"
58+
platform_package_dir="$PLATFORM_PACKAGES_DIR/go-blueprint-$platform_key"
5959
mkdir -p "$platform_package_dir/bin"
6060

6161
if [[ "$archive" == *.tar.gz ]]; then
@@ -122,7 +122,7 @@ cat > "$MAIN_PACKAGE_DIR/bin/go-blueprint" << 'EOF'
122122
123123
const { execFileSync } = require('child_process')
124124
125-
const packageName = 'go-blueprint'
125+
const packageName = '@melkeydev/go-blueprint'
126126
127127
const platformPackages = {
128128
'darwin-x64': `${packageName}-darwin-x64`,
@@ -144,6 +144,7 @@ function getBinaryPath() {
144144
145145
try {
146146
const binaryName = process.platform === 'win32' ? 'go-blueprint.exe' : 'go-blueprint'
147+
const packagePath = platformPackageName.replace('@', '').replace('/', '-')
147148
return require.resolve(`${platformPackageName}/bin/${binaryName}`)
148149
} catch (e) {
149150
process.exit(1)
@@ -198,7 +199,7 @@ const path = require('path')
198199
199200
const binaryName = process.platform === 'win32' ? 'go-blueprint.exe' : 'go-blueprint'
200201
201-
const packageName = 'go-blueprint'
202+
const packageName = '@melkeydev/go-blueprint'
202203
203204
const platformPackages = {
204205
'darwin-x64': `${packageName}-darwin-x64`,

0 commit comments

Comments
 (0)