New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

base-create

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

base-create - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

36

index.js

@@ -49,3 +49,25 @@ const path = require("path");

const createFiles = (files, params) => {
const createFiles = (files, { options, params }) => {
const { skipGitignore, skipReadme } = options;
if (!skipGitignore) {
createFile(
{
path: ".gitignore",
contents: fs.readFileSync(`${__dirname}/files/gitignore`),
},
params
);
}
if (!skipReadme) {
createFile(
{
path: "README.md",
contents: `# ${params.nameWithScope}\n\n`,
},
params
);
}
if (!files) return;

@@ -125,3 +147,3 @@

if (!isSubPackage) {
createFiles(files, createFileParams);
createFiles(files, { options, params: createFileParams });
}

@@ -137,3 +159,3 @@

createFiles(package.files, createFileParams);
createFiles(package.files, { options, params: createFileParams });

@@ -156,10 +178,2 @@ process.chdir(appCwd);

createFile(
{
path: ".gitignore",
contents: fs.readFileSync(`${__dirname}/files/gitignore`),
},
createFileParams
);
const newPackage = require(`${appCwd}/package.json`);

@@ -166,0 +180,0 @@

{
"name": "base-create",
"version": "2.0.1",
"version": "2.0.2",
"description": "Utility for npm init create-* scripts.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -46,3 +46,3 @@ # base-create

commands: [],
// optional config options
// optional global config options
config: {

@@ -52,2 +52,6 @@ // optional package scope to for main package and any sub-packages for monorepos

},
// optionally skip default gitignore creation
skipGitignore: false,
// optionally skip default readme creation
skipReadme: false,
// optionally specify sub-packages for monorepos - see the `base-create-monorepo` package to ease this

@@ -54,0 +58,0 @@ packages: [

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