Comparing version 2.0.0 to 2.0.1
@@ -53,3 +53,3 @@ const util = require('util'); | ||
await exec(`yarn install`); | ||
await exec(`yarn install --force`); | ||
@@ -56,0 +56,0 @@ const startingAeppProcess = spawn('yarn', ['run', 'start:dev']); |
@@ -39,5 +39,4 @@ /* | ||
// TODO check whether we would need `--windows` option in compiler. | ||
let compilerImage = option.windows ? compilerConfigs.dockerImage : compilerConfigs.dockerServiceCompilerName; | ||
let compilerImage = compilerConfigs.dockerServiceCompilerName; | ||
try { | ||
@@ -44,0 +43,0 @@ |
@@ -60,5 +60,6 @@ /* | ||
async run (option) { | ||
let running; | ||
let dockerImage = option.windows ? nodeConfiguration.dockerImage : nodeConfiguration.dockerServiceNodeName; | ||
let compilerImage = option.windows ? compilerConfiguration.dockerImage : compilerConfiguration.dockerServiceCompilerName; | ||
let dockerImage = nodeConfiguration.dockerServiceNodeName | ||
let compilerImage = compilerConfiguration.dockerServiceCompilerName; | ||
@@ -65,0 +66,0 @@ running = await this.areNodeAndCompilerRunning(dockerImage, compilerImage) |
@@ -39,4 +39,3 @@ /* | ||
let dockerImage = option.windows ? nodeConfiguration.dockerServiceNodeName : nodeConfiguration.dockerImage; | ||
dockerImage = nodeConfiguration.dockerServiceNodeName; | ||
let dockerImage = nodeConfiguration.dockerServiceNodeName | ||
@@ -43,0 +42,0 @@ try { |
@@ -31,3 +31,3 @@ /* | ||
async function run(update) { | ||
async function run (update) { | ||
if (update) { | ||
@@ -52,2 +52,3 @@ await updateAEprojectProjectLibraries(sdkVersion); | ||
print(`===== Creating project file & dir structure =====`); | ||
await setupContracts(shape); | ||
@@ -70,2 +71,3 @@ await setupTests(shape); | ||
await installYarn(); | ||
await uninstallForgaeDependencies(); | ||
@@ -107,2 +109,26 @@ print('===== AEproject was successfully updated! ====='); | ||
const uninstallForgaeDependencies = async () => { | ||
const localPackageJson = require(process.cwd() + `/package.json`); | ||
let forgaeRgx = /\s*"(forgae[^"]*)"\s*/gm; | ||
let forgaeDependencies = JSON.stringify(localPackageJson); | ||
let match; | ||
match = forgaeRgx.exec(forgaeDependencies); | ||
if (match[1] == 'forgae-project') { | ||
match = forgaeRgx.exec(forgaeDependencies) | ||
} | ||
if (!match) { | ||
return | ||
} | ||
print(`===== Removing ForgAE deprecated dependencies =====`); | ||
while (match) { | ||
await execute(/^win/.test(process.platform) ? 'npm.cmd' : 'npm', 'uninstall', [`${ match[1] }`]); | ||
match = forgaeRgx.exec(forgaeDependencies) | ||
} | ||
} | ||
const setupContracts = async (shape) => { | ||
@@ -222,3 +248,3 @@ | ||
async function prompt(error) { | ||
async function prompt (error) { | ||
const args = [...arguments]; | ||
@@ -225,0 +251,0 @@ // [0] - error |
@@ -70,3 +70,3 @@ /* | ||
.command('env') | ||
.description('Running a local node. Without any argument node will be run with --start argument') | ||
.description('Running a local network. Without any argument node will be run with --start argument') | ||
.option('--stop', 'Stop the node') | ||
@@ -73,0 +73,0 @@ .option('--start', 'Start the node') |
{ | ||
"name": "aeproject", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "This is the default package.json generated for your project", | ||
@@ -12,5 +12,5 @@ "main": "index.js", | ||
"dependencies": { | ||
"aeproject-config": "^2.0.0", | ||
"aeproject-logger": "^2.0.0", | ||
"aeproject-utils": "^2.0.0", | ||
"aeproject-config": "^2.0.1", | ||
"aeproject-logger": "^2.0.1", | ||
"aeproject-utils": "^2.0.1", | ||
"chai": "^4.1.2", | ||
@@ -17,0 +17,0 @@ "chai-as-promised": "^7.1.1", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
94729
59
1979
7
Updatedaeproject-config@^2.0.1
Updatedaeproject-logger@^2.0.1
Updatedaeproject-utils@^2.0.1