@kokkoro/cli
Advanced tools
| { | ||
| "name": "decorator", | ||
| "version": "1.0.0", | ||
| "description": "", | ||
| "engines": { | ||
| "node": ">=20.6.0" | ||
| }, | ||
| "type": "module", | ||
| "main": "lib/index.js", | ||
| "typings": "lib/index.d.ts", | ||
| "scripts": { | ||
| "test": "echo \"Error: no test specified\" && exit 1" | ||
| }, | ||
| "keywords": [], | ||
| "author": "", | ||
| "license": "ISC" | ||
| } |
| { | ||
| "name": "hook", | ||
| "version": "1.0.0", | ||
| "description": "", | ||
| "engines": { | ||
| "node": ">=20.6.0" | ||
| }, | ||
| "type": "module", | ||
| "main": "lib/index.js", | ||
| "typings": "lib/index.d.ts", | ||
| "scripts": { | ||
| "test": "echo \"Error: no test specified\" && exit 1" | ||
| }, | ||
| "keywords": [], | ||
| "author": "", | ||
| "license": "ISC" | ||
| } |
| { | ||
| "name": "javascript", | ||
| "version": "1.0.0", | ||
| "description": "", | ||
| "engines": { | ||
| "node": ">=20.6.0" | ||
| }, | ||
| "type": "module", | ||
| "main": "index.js", | ||
| "scripts": { | ||
| "test": "echo \"Error: no test specified\" && exit 1" | ||
| }, | ||
| "keywords": [], | ||
| "author": "", | ||
| "license": "ISC" | ||
| } |
+1
-2
@@ -43,3 +43,2 @@ import ora from 'ora'; | ||
| const module_path = join(plugins_path, name); | ||
| const module_main = style === 'javascript' ? 'index.js' : 'lib/index.js'; | ||
| if (existsSync(module_path)) { | ||
@@ -54,3 +53,3 @@ console.warn(`${ERROR}: plugin directory already exists.\n`); | ||
| }); | ||
| const command = `cd ./plugins/${name} && npm init -y && npm pkg set type="module" && npm pkg set main="${module_main}"`; | ||
| const command = `cd ./plugins/${name} && npm pkg set name="${name}"`; | ||
| const spinner = ora(`Initialize ${name} package.json`).start(); | ||
@@ -57,0 +56,0 @@ try { |
+2
-2
| { | ||
| "name": "@kokkoro/cli", | ||
| "version": "2.0.2", | ||
| "version": "2.0.3", | ||
| "description": "Cli tool for kokkoro.", | ||
@@ -39,3 +39,3 @@ "engines": { | ||
| "@kokkoro/core": "^3.0.10", | ||
| "@kokkoro/utils": "^0.8.0" | ||
| "@kokkoro/utils": "^0.8.2" | ||
| }, | ||
@@ -42,0 +42,0 @@ "scripts": { |
Mixed license
LicensePackage contains multiple licenses.
Found 1 instance in 1 package
37953
2.12%14
27.27%1
Infinity%496
-0.2%