@semaphore-protocol/cli 4.0.0-beta.1 → 4.0.0-beta.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/dist/index.js CHANGED
@@ -2,14 +2,15 @@
2
2
 
3
3
  /**
4
4
  * @module @semaphore-protocol/cli
5
- * @version 4.0.0-beta.1
5
+ * @version 4.0.0-beta.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
9
9
  * @see [Github]{@link https://github.com/semaphore-protocol/semaphore/tree/main/packages/cli}
10
10
  */
11
11
 
12
- import { SemaphoreSubgraph, SemaphoreEthers, getSupportedNetworks } from '@semaphore-protocol/data';
12
+ import { SemaphoreSubgraph, SemaphoreEthers } from '@semaphore-protocol/data';
13
+ import supportedNetworks from '@semaphore-protocol/utils/supported-networks';
13
14
  import chalk from 'chalk';
14
15
  import { program } from 'commander';
15
16
  import decompress from 'decompress';
@@ -143,7 +144,6 @@ async function getGroupId(groupIds) {
143
144
 
144
145
  const packagePath = `${dirname(fileURLToPath(import.meta.url))}/..`;
145
146
  const { description, version } = JSON.parse(readFileSync(`${packagePath}/package.json`, "utf8"));
146
- const supportedNetworks = getSupportedNetworks();
147
147
  const supportedTemplates = [
148
148
  {
149
149
  value: "monorepo-ethers",
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-beta.1",
4
+ "version": "4.0.0-beta.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": {
@@ -31,15 +31,18 @@
31
31
  "access": "public"
32
32
  },
33
33
  "devDependencies": {
34
+ "@rollup/plugin-typescript": "^11.1.6",
34
35
  "@types/figlet": "^1.5.8",
35
36
  "@types/inquirer": "^9.0.7",
36
37
  "@types/pacote": "^11.1.8",
37
38
  "@types/semver": "^7.5.8",
38
- "rollup-plugin-cleanup": "^3.2.1",
39
- "rollup-plugin-typescript2": "^0.36.0"
39
+ "rimraf": "^5.0.5",
40
+ "rollup": "^4.12.0",
41
+ "rollup-plugin-cleanup": "^3.2.1"
40
42
  },
41
43
  "dependencies": {
42
- "@semaphore-protocol/data": "4.0.0-beta.1",
44
+ "@semaphore-protocol/data": "4.0.0-beta.3",
45
+ "@semaphore-protocol/utils": "4.0.0-beta.3",
43
46
  "axios": "^1.6.7",
44
47
  "boxen": "^7.1.1",
45
48
  "chalk": "^5.3.0",
package/src/index.ts CHANGED
@@ -1,4 +1,5 @@
1
- import { GroupResponse, SemaphoreEthers, SemaphoreSubgraph, getSupportedNetworks } from "@semaphore-protocol/data"
1
+ import { GroupResponse, SemaphoreEthers, SemaphoreSubgraph } from "@semaphore-protocol/data"
2
+ import supportedNetworks from "@semaphore-protocol/utils/supported-networks"
2
3
  import chalk from "chalk"
3
4
  import { program } from "commander"
4
5
  import decompress from "decompress"
@@ -16,8 +17,6 @@ import Spinner from "./spinner.js"
16
17
  const packagePath = `${dirname(fileURLToPath(import.meta.url))}/..`
17
18
  const { description, version } = JSON.parse(readFileSync(`${packagePath}/package.json`, "utf8"))
18
19
 
19
- const supportedNetworks = getSupportedNetworks()
20
-
21
20
  const supportedTemplates = [
22
21
  {
23
22
  value: "monorepo-ethers",