Skip to content

Commit

Permalink
fix npm package
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Aug 4, 2023
1 parent 542a005 commit d8d2998
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jobs:
working-directory: ./packages/hdx
- run: npm version ${TAG_NAME} --no-git-tag-version
working-directory: ./packages/hdx
- run: npm whoami; npm pub --provenance --dist-tag=$DIST_TAG --access=public
- run: npm whoami; npm pub --provenance --tag $DIST_TAG --access public
working-directory: ./packages/hdx
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
3 changes: 2 additions & 1 deletion packages/hdx/bin/hdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env node
const { platform, arch, env, version, release } = process;
const { join } = require('path');

const PLATFORMS = {
win32: {
Expand All @@ -19,7 +20,7 @@ const PLATFORMS = {
const binPath = PLATFORMS?.[platform]?.[arch];
if (binPath) {
const result = require("child_process").spawnSync(
require.resolve(binPath),
join(__dirname, binPath),
process.argv.slice(2),
{
shell: false,
Expand Down

0 comments on commit d8d2998

Please sign in to comment.