Rename packages @cosmwasm/* to @cosmjs/*
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# @cosmwasm/cli
|
||||
# @cosmjs/cli
|
||||
|
||||
[](https://www.npmjs.com/package/@cosmwasm/cli)
|
||||
[](https://www.npmjs.com/package/@cosmjs/cli)
|
||||
|
||||
## Installation and first run
|
||||
|
||||
@@ -11,34 +11,34 @@ installations to your demo project. If you don't have one yet, just
|
||||
### locally with yarn
|
||||
|
||||
```
|
||||
$ yarn add @cosmwasm/cli --dev
|
||||
$ yarn add @cosmjs/cli --dev
|
||||
$ ./node_modules/.bin/cosmwasm-cli
|
||||
```
|
||||
|
||||
### locally with npm
|
||||
|
||||
```
|
||||
$ npm install @cosmwasm/cli --save-dev
|
||||
$ npm install @cosmjs/cli --save-dev
|
||||
$ ./node_modules/.bin/cosmwasm-cli
|
||||
```
|
||||
|
||||
### globally with yarn
|
||||
|
||||
```
|
||||
$ yarn global add @cosmwasm/cli
|
||||
$ yarn global add @cosmjs/cli
|
||||
$ cosmwasm-cli
|
||||
```
|
||||
|
||||
### globally with npm
|
||||
|
||||
```
|
||||
$ npm install -g @cosmwasm/cli
|
||||
$ npm install -g @cosmjs/cli
|
||||
$ cosmwasm-cli
|
||||
```
|
||||
|
||||
## Getting started
|
||||
|
||||
1. Install `@cosmwasm/cli` and run `cosmwasm-cli` as shown above
|
||||
1. Install `@cosmjs/cli` and run `cosmwasm-cli` as shown above
|
||||
2. Start a local wasmd blockchain
|
||||
3. Start with `./bin/cosmwasm-cli --init examples/local_faucet.ts`
|
||||
4. Play around as in the following example code
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "@cosmwasm/cli",
|
||||
"name": "@cosmjs/cli",
|
||||
"version": "0.8.0",
|
||||
"description": "Command line interface",
|
||||
"contributors": [
|
||||
@@ -38,8 +38,8 @@
|
||||
"!**/testdata/"
|
||||
],
|
||||
"dependencies": {
|
||||
"@cosmwasm/cosmwasm": "^0.8.0",
|
||||
"@cosmwasm/sdk38": "^0.8.0",
|
||||
"@cosmjs/cosmwasm": "^0.8.0",
|
||||
"@cosmjs/sdk38": "^0.8.0",
|
||||
"@iov/crypto": "^2.1.0",
|
||||
"@iov/encoding": "^2.1.0",
|
||||
"@iov/utils": "^2.0.2",
|
||||
|
||||
@@ -30,7 +30,7 @@ export function main(originalArgs: readonly string[]): void {
|
||||
|
||||
const imports = new Map<string, readonly string[]>([
|
||||
[
|
||||
"@cosmwasm/cosmwasm",
|
||||
"@cosmjs/cosmwasm",
|
||||
[
|
||||
// cosmwasmclient
|
||||
"Account",
|
||||
@@ -60,7 +60,7 @@ export function main(originalArgs: readonly string[]): void {
|
||||
],
|
||||
],
|
||||
[
|
||||
"@cosmwasm/sdk38",
|
||||
"@cosmjs/sdk38",
|
||||
[
|
||||
"coin",
|
||||
"coins",
|
||||
|
||||
@@ -80,7 +80,7 @@ export class TsRepl {
|
||||
// '/home/me/.node_modules',
|
||||
// '/home/me/.node_libraries',
|
||||
// '/usr/lib/nodejs' ]
|
||||
// However, this does not include the installation path of @cosmwasm/cli because
|
||||
// However, this does not include the installation path of @cosmjs/cli because
|
||||
// REPL does not inherit module paths from the current process. Thus we override
|
||||
// the repl paths with the current process' paths
|
||||
unsafeReplContext.module.paths = module.paths;
|
||||
|
||||
Reference in New Issue
Block a user