base-create
Advanced tools
Comparing version 3.0.7 to 3.0.8
18
index.js
@@ -125,4 +125,13 @@ const path = require("path"); | ||
let packageDir = process.argv[2]; | ||
if (!packageDir) { | ||
console.error( | ||
chalk.red("Must provide directory as an argument.") | ||
); | ||
process.exit(1); | ||
} | ||
// Follow the `@types/scope__name` convention for replacing `/`. | ||
let packageDir = process.argv[2].replace(/\//g, "__"); | ||
packageDir = process.argv[2].replace(/\//g, "__"); | ||
@@ -135,9 +144,2 @@ options.name = options.name || packageDir; | ||
if (!packageDir) { | ||
console.log( | ||
"Must provide directory as argument: `npm init " + node + " my-app`." | ||
); | ||
process.exit(1); | ||
} | ||
if (isSubPackage) { | ||
@@ -144,0 +146,0 @@ packageDir = `${packageDir}/packages/${dirName}`; |
{ | ||
"name": "base-create", | ||
"version": "3.0.7", | ||
"version": "3.0.8", | ||
"description": "Utility for npm init create-* scripts.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -20,3 +20,3 @@ # base-create | ||
// optional dev deps to install | ||
devDependencies: ["@babel/core", "@babel/plugin-transform-runtime", A], | ||
devDependencies: ["@babel/core", "@babel/plugin-transform-runtime"], | ||
// mostly a shallow merge into a base `package.json` from `npm init` | ||
@@ -45,3 +45,3 @@ package: { | ||
], | ||
// optional list of commands | ||
// optional list of shell commands to be run | ||
commands: [], | ||
@@ -48,0 +48,0 @@ // optional global config options |
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
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
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
11003
195
4