Socket
Socket
Sign inDemoInstall

@beuluis/create-something

Package Overview
Dependencies
75
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.8 to 2.0.0

31

dist/cli.js

@@ -9,3 +9,2 @@ #!/usr/bin/env node

(0, create_helper_1.create)({
questionsSelectors: ['name', 'description', 'license'],
templatesDirectory: (0, path_1.resolve)(__dirname, '..', 'templates'),

@@ -15,17 +14,19 @@ partials: (0, path_1.resolve)(__dirname, '..', 'templates', 'partials'),

templatesPrefix: 'template-',
setupInteractiveUI: engine => {
engine.registerQuestion({
type: 'input',
message: 'What is the name of your project? (needs to start with create- or @scope/create- and be a valid npm package name)',
validate: (input) => {
if (!package_name_regex_1.default.test(input)) {
return `${input} is not a valid npm package name`;
}
if (!RegExp(/^(create-|([^\/]*)\/create-).+$/).test(input)) {
return `${input} should start with create- or @scope/create-`;
}
return true;
setupInteractiveUI: (engine, buildInQuestions) => {
engine.registerQuestions([{
type: 'input',
message: 'What is the name of your project? (needs to start with create- or @scope/create- and be a valid npm package name)',
validate: (input) => {
if (!package_name_regex_1.default.test(input)) {
return `${input} is not a valid npm package name`;
}
if (!RegExp(/^(create-|([^\/]*)\/create-).+$/).test(input)) {
return `${input} should start with create- or @scope/create-`;
}
return true;
},
name: 'name',
},
name: 'name',
}, true);
buildInQuestions.description,
buildInQuestions.license]);
},

@@ -32,0 +33,0 @@ afterCreationHook: async ({ getAfterHookHelper }) => {

{
"name": "@beuluis/create-something",
"version": "1.0.8",
"version": "2.0.0",
"description": "Initializer for other initializers",

@@ -32,3 +32,3 @@ "main": "dist/cli.js",

"dependencies": {
"@beuluis/create-helper": "^1.0.6",
"@beuluis/create-helper": "^1.1.1",
"package-name-regex": "^2.0.6"

@@ -35,0 +35,0 @@ },

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

create({
questionsSelectors: ['name', 'description', 'license'],
templatesDirectory: resolve(__dirname, '..', 'templates'),
defaultTemplate: 'standard',
templatesPrefix: 'template-',
setupInteractiveUI: (engine, buildInQuestions) => {
engine.registerQuestions([
buildInQuestions.name,
buildInQuestions.description,
buildInQuestions.license
])
},
afterCreationHook: async ({ getAfterHookHelper }) => {

@@ -13,0 +19,0 @@ const helper = getAfterHookHelper();

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

create({
questionsSelectors: ['name', 'description', 'license'],
templatesDirectory: resolve(__dirname, '..', 'templates'),
defaultTemplate: 'standard',
templatesPrefix: 'template-',
setupInteractiveUI: (engine, buildInQuestions) => {
engine.registerQuestions([
buildInQuestions.name,
buildInQuestions.description,
buildInQuestions.license
])
},
afterCreationHook: async ({ getAfterHookHelper }) => {

@@ -13,0 +19,0 @@ const helper = getAfterHookHelper();

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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