Socket
Socket
Sign inDemoInstall

lovelope-react-cli

Package Overview
Dependencies
127
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.3 to 0.0.4

7

bin/init.js

@@ -10,3 +10,3 @@ const fs = require('fs');

module.exports = function init(name) {
module.exports = function init(program, name) {
inquirer

@@ -30,6 +30,3 @@ .prompt([

let remoteUrl = pkg.template.default;
if (
process.argv.includes('-t') ||
process.argv.includes('--typescript')
) {
if (program.typescript) {
remoteUrl = pkg.template.typescript;

@@ -36,0 +33,0 @@ }

@@ -5,6 +5,6 @@ #!/usr/bin/env node

const program = require('commander');
const fs = require('fs');
const program = require('commander');
const symbols = require('log-symbols');
const chalk = require('chalk');
const symbols = require('log-symbols');
const validate = require('validate-npm-package-name');

@@ -31,3 +31,3 @@

if (!fs.existsSync(name)) {
init(name);
init(program, name);
} else {

@@ -34,0 +34,0 @@ // 错误提示项目已存在,避免覆盖原有项目

{
"name": "lovelope-react-cli",
"version": "0.0.3",
"version": "0.0.4",
"description": "A cli for react-starter.",

@@ -5,0 +5,0 @@ "bin": {

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc