@semaphore-protocol/cli 4.0.0-beta.17 → 4.0.0-beta.19
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 +4 -2
- package/package.json +3 -3
- package/src/index.ts +4 -1
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @module @semaphore-protocol/cli
|
|
5
|
-
* @version 4.0.0-beta.
|
|
5
|
+
* @version 4.0.0-beta.19
|
|
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
|
|
@@ -15,7 +15,7 @@ import chalk from 'chalk';
|
|
|
15
15
|
import { program } from 'commander';
|
|
16
16
|
import decompress from 'decompress';
|
|
17
17
|
import figlet from 'figlet';
|
|
18
|
-
import { readFileSync, existsSync, unlinkSync, copyFileSync } from 'fs';
|
|
18
|
+
import { readFileSync, existsSync, unlinkSync, copyFileSync, writeFileSync } from 'fs';
|
|
19
19
|
import logSymbols from 'log-symbols';
|
|
20
20
|
import pacote from 'pacote';
|
|
21
21
|
import { dirname } from 'path';
|
|
@@ -236,6 +236,8 @@ program
|
|
|
236
236
|
unlinkSync(`${currentDirectory}/${projectDirectory}/files.tgz`);
|
|
237
237
|
// Copy the example environment file to the actual environment file.
|
|
238
238
|
copyFileSync(`${currentDirectory}/${projectDirectory}/.env.example`, `${currentDirectory}/${projectDirectory}/.env`);
|
|
239
|
+
// Create an empty yarn.lock file to install dependencies successfully
|
|
240
|
+
writeFileSync(`${currentDirectory}/${projectDirectory}/yarn.lock`, "");
|
|
239
241
|
spinner.stop();
|
|
240
242
|
console.info(`\n ${logSymbols.success}`, `Your project is ready!\n`);
|
|
241
243
|
console.info(` Please, install your dependencies by running:\n`);
|
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.
|
|
4
|
+
"version": "4.0.0-beta.19",
|
|
5
5
|
"description": "A command line tool to set up your Semaphore project and get group data.",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"bin": {
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"rollup-plugin-cleanup": "^3.2.1"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@semaphore-protocol/data": "4.0.0-beta.
|
|
45
|
-
"@semaphore-protocol/utils": "4.0.0-beta.
|
|
44
|
+
"@semaphore-protocol/data": "4.0.0-beta.19",
|
|
45
|
+
"@semaphore-protocol/utils": "4.0.0-beta.19",
|
|
46
46
|
"axios": "^1.6.7",
|
|
47
47
|
"boxen": "^7.1.1",
|
|
48
48
|
"chalk": "^5.3.0",
|
package/src/index.ts
CHANGED
|
@@ -4,7 +4,7 @@ import chalk from "chalk"
|
|
|
4
4
|
import { program } from "commander"
|
|
5
5
|
import decompress from "decompress"
|
|
6
6
|
import figlet from "figlet"
|
|
7
|
-
import { copyFileSync, existsSync, readFileSync, unlinkSync } from "fs"
|
|
7
|
+
import { copyFileSync, existsSync, readFileSync, unlinkSync, writeFileSync } from "fs"
|
|
8
8
|
import logSymbols from "log-symbols"
|
|
9
9
|
import pacote from "pacote"
|
|
10
10
|
import { dirname } from "path"
|
|
@@ -100,6 +100,9 @@ program
|
|
|
100
100
|
`${currentDirectory}/${projectDirectory}/.env`
|
|
101
101
|
)
|
|
102
102
|
|
|
103
|
+
// Create an empty yarn.lock file to install dependencies successfully
|
|
104
|
+
writeFileSync(`${currentDirectory}/${projectDirectory}/yarn.lock`, "")
|
|
105
|
+
|
|
103
106
|
spinner.stop()
|
|
104
107
|
|
|
105
108
|
console.info(`\n ${logSymbols.success}`, `Your project is ready!\n`)
|