Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add prepare script to allow yarn/npm load from git #415

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add prepare script to allow yarn/npm load from git #415

wants to merge 1 commit into from

Conversation

sneak
Copy link
Contributor

@sneak sneak commented Oct 24, 2018

By adding a prepare stanza to the package.json scripts, this allows a consumer to specify the dependency by git URL and have it transpile properly when npm install is run in the consumer.

{
  "name": "steem-program",
  "version": "1.0.0",
  "main": "index.js",
  "license": "MIT",
  "dependencies": {
    "@steemit/steem-js": "https://github.com/steemit/steem-js"
  }
}

By adding a `prepare` stanza to the `package.json` `scripts`, this allows a consumer to specify the upstream by git URL and have it transpile properly.

```{
  "name": "steem-program",
  "version": "1.0.0",
  "main": "index.js",
  "license": "MIT",
  "dependencies": {
    "@steemit/steem-js": "https://github.com/steemit/steem-js"
  }
}
```
@sneak
Copy link
Contributor Author

sneak commented Oct 24, 2018

More info available at npm/npm#3055

@sneak
Copy link
Contributor Author

sneak commented Oct 24, 2018

lol CI fails because the test is using the network and the test account is bandwidth limited:


  1) steem.broadcast: comment with options works:
     RPCError: plugin exception:Account: guest123 has 966821953 RC, needs 1443846168 RC. Please wait to transact, or power up STEEM.rethrow
      at RPCError.Error (native)
      at new RPCError (src/api/transports/http.js:8:25)
      at src/api/transports/http.js:36:13
      at process._tickCallback (internal/process/next_tick.js:109:7)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant