create-gelui
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,39 +0,6 @@ | ||
"use strict"; | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
// If the importer is in node compatibility mode or this is not an ESM | ||
// file that has been converted to a CommonJS file using a Babel- | ||
// compatible transform (i.e. "__esModule" has not been set), then set | ||
// "default" to the CommonJS "module.exports" for node compatibility. | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | ||
mod | ||
)); | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
var project_exports = {}; | ||
__export(project_exports, { | ||
run: () => run | ||
}); | ||
module.exports = __toCommonJS(project_exports); | ||
var import_promises = __toESM(require("fs/promises")); | ||
var import_path = __toESM(require("path")); | ||
import FS from "fs/promises"; | ||
import Path from "path"; | ||
async function run(args) { | ||
const rpath = import_path.default.join(process.cwd(), args.name); | ||
const gpathExists = await import_promises.default.access(rpath).then(() => true).catch(() => false); | ||
const rpath = Path.join(process.cwd(), args.name); | ||
const gpathExists = await FS.access(rpath).then(() => true).catch(() => false); | ||
if (gpathExists) { | ||
@@ -46,3 +13,3 @@ console.log(` | ||
console.log(`Creating`, [rpath]); | ||
await import_promises.default.mkdir(rpath, { | ||
await FS.mkdir(rpath, { | ||
recursive: true | ||
@@ -52,5 +19,4 @@ }); | ||
} | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
export { | ||
run | ||
}); | ||
}; |
{ | ||
"name": "create-gelui", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Creates a new GelUI project.", | ||
@@ -10,4 +10,5 @@ "license": "MIT", | ||
}, | ||
"type": "module", | ||
"bin": { | ||
"create-gelui": "bin/create-gelui" | ||
"create-gelui": "bin/create-gelui.cjs" | ||
}, | ||
@@ -25,7 +26,14 @@ "files": [ | ||
"build-es": "tsx scripts/esbuild.ts", | ||
"build-ts": "tsc --noEmit --project ./tsconfig.eslint.json", | ||
"build-ts": "tsc --project ./tsconfig.eslint.json --noEmit", | ||
"format": "prettier --write \"./**/*.{css,js,jsx,scss,ts}\"", | ||
"lint": "eslint . --ext .ts -c .eslintrc-prod", | ||
"lint-fix": "eslint . --ext .ts --fix", | ||
"lint-ts": "tsc --project ./tsconfig.eslint.json --noEmit", | ||
"rand": "cat /dev/urandom | tr -dc _A-Z-a-z-0-9 | head -c${C:-32};echo;", | ||
"rand-help": "echo 'Change count by running `C=21 npm run rand`'", | ||
"rm-build": "shx rm -rf lib/", | ||
"test": "echo 'Sorry, no tests!'" | ||
"test": "echo 'Sorry, no tests yet!'" | ||
}, | ||
"dependencies": { | ||
"ejs": "^3.1.9", | ||
"tslib": "^2.6.2", | ||
@@ -36,2 +44,3 @@ "yargs": "^17.7.2" | ||
"@tsconfig/node18": "^18.2.2", | ||
"@types/ejs": "^3.1.5", | ||
"@types/node": "^20.4.4", | ||
@@ -38,0 +47,0 @@ "@types/uuid": "^9.0.2", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
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
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
20
Yes
14303
3
17
129
4
1
+ Addedejs@^3.1.9
+ Addedasync@3.2.6(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.112.0.1(transitive)
+ Addedchalk@4.1.2(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedejs@3.1.10(transitive)
+ Addedfilelist@1.0.4(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedjake@10.9.2(transitive)
+ Addedminimatch@3.1.25.1.6(transitive)
+ Addedsupports-color@7.2.0(transitive)