Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

create-gelui

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-gelui - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

bin/create-gelui.cjs

48

lib/creators/project.js

@@ -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

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