@semaphore-protocol/cli 4.0.0-alpha.1 → 4.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
  <img src="https://img.shields.io/badge/project-Semaphore-blue.svg?style=flat-square">
11
11
  </a>
12
12
  <a href="https://github.com/semaphore-protocol/semaphore/blob/main/LICENSE">
13
- <img alt="Github license" src="https://img.shields.io/github/license/semaphore-protocol/semaphore.svg?style=flat-square">
13
+ <img alt="NPM license" src="https://img.shields.io/npm/l/%40semaphore-protocol%2Fcli?style=flat-square">
14
14
  </a>
15
15
  <a href="https://www.npmjs.com/package/@semaphore-protocol/cli">
16
16
  <img alt="NPM version" src="https://img.shields.io/npm/v/@semaphore-protocol/cli?style=flat-square" />
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * @module @semaphore-protocol/cli
5
- * @version 4.0.0-alpha.1
5
+ * @version 4.0.0-alpha.3
6
6
  * @file A command line tool to set up your Semaphore project and get group data.
7
7
  * @copyright Ethereum Foundation 2024
8
8
  * @license MIT
@@ -209,12 +209,12 @@ program
209
209
  console.info(`\n ${logSymbols.success}`, `Your project is ready!\n`);
210
210
  console.info(` Please, install your dependencies by running:\n`);
211
211
  console.info(` ${chalk.cyan("cd")} ${projectDirectory}`);
212
- console.info(` ${chalk.cyan("npm i")}\n`);
212
+ console.info(` ${chalk.cyan("yarn install")}\n`);
213
213
  const { scripts } = JSON.parse(readFileSync(`${currentDirectory}/${projectDirectory}/package.json`, "utf8"));
214
214
  if (scripts) {
215
215
  console.info(` Available scripts:\n`);
216
216
  console.info(`${Object.keys(scripts)
217
- .map((s) => ` ${chalk.cyan(`npm run ${s}`)}`)
217
+ .map((s) => ` ${chalk.cyan(`yarn ${s}`)}`)
218
218
  .join("\n")}\n`);
219
219
  console.info(` See the README.md file to understand how to use them!\n`);
220
220
  }
@@ -276,7 +276,6 @@ program
276
276
  try {
277
277
  const semaphoreEthers = new SemaphoreEthers(network);
278
278
  group = await semaphoreEthers.getGroup(groupId);
279
- group.admin = await semaphoreEthers.getGroupAdmin(groupId);
280
279
  spinner.stop();
281
280
  }
282
281
  catch {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semaphore-protocol/cli",
3
3
  "type": "module",
4
- "version": "4.0.0-alpha.1",
4
+ "version": "4.0.0-alpha.3",
5
5
  "description": "A command line tool to set up your Semaphore project and get group data.",
6
6
  "license": "MIT",
7
7
  "bin": {
@@ -24,7 +24,6 @@
24
24
  },
25
25
  "scripts": {
26
26
  "start": "node --loader ts-node/esm --no-warnings src/index.ts",
27
- "build:watch": "rollup -c rollup.config.ts -w --configPlugin typescript",
28
27
  "build": "rimraf dist && rollup -c rollup.config.ts --configPlugin typescript",
29
28
  "prepublishOnly": "yarn build"
30
29
  },
@@ -42,7 +41,7 @@
42
41
  "ts-node": "^10.9.1"
43
42
  },
44
43
  "dependencies": {
45
- "@semaphore-protocol/data": "4.0.0-alpha.1",
44
+ "@semaphore-protocol/data": "4.0.0-alpha.3",
46
45
  "axios": "^1.3.2",
47
46
  "boxen": "^7.0.1",
48
47
  "chalk": "^5.1.2",
package/src/index.ts CHANGED
@@ -98,7 +98,7 @@ program
98
98
  console.info(`\n ${logSymbols.success}`, `Your project is ready!\n`)
99
99
  console.info(` Please, install your dependencies by running:\n`)
100
100
  console.info(` ${chalk.cyan("cd")} ${projectDirectory}`)
101
- console.info(` ${chalk.cyan("npm i")}\n`)
101
+ console.info(` ${chalk.cyan("yarn install")}\n`)
102
102
 
103
103
  const { scripts } = JSON.parse(readFileSync(`${currentDirectory}/${projectDirectory}/package.json`, "utf8"))
104
104
 
@@ -107,7 +107,7 @@ program
107
107
 
108
108
  console.info(
109
109
  `${Object.keys(scripts)
110
- .map((s) => ` ${chalk.cyan(`npm run ${s}`)}`)
110
+ .map((s) => ` ${chalk.cyan(`yarn ${s}`)}`)
111
111
  .join("\n")}\n`
112
112
  )
113
113
 
@@ -189,8 +189,6 @@ program
189
189
 
190
190
  group = await semaphoreEthers.getGroup(groupId)
191
191
 
192
- group.admin = await semaphoreEthers.getGroupAdmin(groupId)
193
-
194
192
  spinner.stop()
195
193
  } catch {
196
194
  spinner.stop()