Socket
Socket
Sign inDemoInstall

@arwen/arwen-cli

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arwen/arwen-cli - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

lib/logo.js

5

package.json
{
"name": "@arwen/arwen-cli",
"version": "0.0.2",
"version": "0.0.3",
"description": "arwen-cli",

@@ -13,6 +13,5 @@ "main": "index.js",

"dependencies": {
"@arwen/arwen-utils": "^0.0.2",
"compression": "^1.7.4",
"cross-spawn": "^6.0.5",
"express": "^4.16.4",
"fs-extra": "^7.0.1",
"pm2": "^3.4.1",

@@ -19,0 +18,0 @@ "yargs": "^13.2.2"

46

scripts/create.js

@@ -0,4 +1,5 @@

const path = require('path')
const {
chalk,
fse,
path,
spawn,

@@ -51,14 +52,14 @@ ErrorHandler,

return new Promise((resolve, reject) => {
// const child = spawn('yarn', ['link', '@arwen/h_ui-scripts', '@arwen/arwen-utils'], {
const child = spawn('yarn', ['link', '@arwen/h_ui-scripts'], {
stdio: 'inherit'
}) // dev
// const child = spawn('yarn', [
// 'add', '@arwen/h_ui-scripts',
// '--dev',
// '--registry', 'http://registry.npm.taobao.org'
// ], {
// stdio: 'inherit'
// }) // dev
// }) // prod
const child = spawn('npm', [
'install', '@arwen/h_ui-scripts', '@arwen/arwen-utils',
'-d',
'--registry', 'http://registry.npm.taobao.org'
], {
stdio: 'inherit'
}) // prod
child.on('close', code => {

@@ -82,15 +83,14 @@ if (code !== 0) return reject()

let projectDeps = []
// let projectDeps = []
//
// for (let i = 0; i < pkgConfig.dependencies.length; i++) {
// if (['@arwen/h_ui-scripts', '@arwen/arwen-utils'].includes(pkgConfig.dependencies[i])) {
// continue
// } else {
// projectDeps.push(pkgConfig.dependencies[i])
// }
// }
for (let i = 0; i < pkgConfig.dependencies.length; i++) {
if (['@arwen/h_ui-scripts', '@arwen/arwen-utils'].includes(pkgConfig.dependencies[i])) {
continue
} else {
projectDeps.push(pkgConfig.dependencies[i])
}
}
const child = spawn('npm', [
'install', ...projectDeps,
'-d',
const child = spawn('yarn', [
// 'add', ...projectDeps,
'--registry', 'http://registry.npm.taobao.org'

@@ -97,0 +97,0 @@ ], {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc