🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

create-email

Package Overview
Dependencies
Maintainers
2
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-email - npm Package Compare versions

Comparing version

to
0.0.16

5

package.json
{
"name": "create-email",
"version": "0.0.15",
"version": "0.0.16",
"description": "The easiest way to get started with React Email",

@@ -29,3 +29,6 @@ "main": "src/index.js",

"create-email": "src/index.js"
},
"devDependencies": {
"prettier": "2.8.4"
}
}

41

src/index.js
#!/usr/bin/env node
import { Command } from 'commander';
import { fileURLToPath } from 'node:url';
import fse from 'fs-extra';
import logSymbols from 'log-symbols';
import ora from 'ora';
import path from 'node:path';
import tree from 'tree-node-cli';
import packageJson from '../package.json' assert { type: "json" };
import { Command } from "commander";
import { fileURLToPath } from "node:url";
import fse from "fs-extra";
import logSymbols from "log-symbols";
import ora from "ora";
import path from "node:path";
import tree from "tree-node-cli";
const init = (name) => {
const spinner = ora('Preparing files...\n').start();
const spinner = ora("Preparing files...\n").start();

@@ -18,11 +17,11 @@ let projectPath = name;

if (!projectPath) {
projectPath = path.join(process.cwd(), 'react-email-starter');
projectPath = path.join(process.cwd(), "react-email-starter");
}
if (typeof projectPath === 'string') {
projectPath = projectPath.trim()
if (typeof projectPath === "string") {
projectPath = projectPath.trim();
}
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const templatePath = path.resolve(__dirname, '../template');
const templatePath = path.resolve(__dirname, "../template");
const resolvedProjectPath = path.resolve(projectPath);

@@ -42,12 +41,12 @@

symbol: logSymbols.success,
text: 'React Email Starter files ready',
text: "React Email Starter files ready",
});
}
};
const program = new Command()
.name(packageJson.name)
.version(packageJson.version)
.description(packageJson.description)
.arguments('[dir]', 'path to initiliaze the project')
.name("create-email")
.version("0.0.16")
.description("The easiest way to get started with React Email")
.arguments("[dir]", "path to initiliaze the project")
.action(init)
.parse(process.argv);
.parse(process.argv);

@@ -5,2 +5,5 @@ {

"private": true,
"workspaces": [
".react-email"
],
"scripts": {

@@ -11,5 +14,5 @@ "dev": "email dev",

"dependencies": {
"@react-email/components": "0.0.3",
"react-email": "1.7.15"
"@react-email/components": "0.0.6",
"react-email": "1.9.1"
}
}
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"lib": ["dom", "ES2015"]
"composite": false,
"declaration": true,
"declarationMap": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"inlineSources": false,
"isolatedModules": true,
"moduleResolution": "node",
"noUnusedLocals": false,
"noUnusedParameters": false,
"preserveWatchOutput": true,
"skipLibCheck": true,
"strict": true,
"jsx": "react-jsx",
"lib": ["ES2015"],
"module": "ESNext",
"target": "es6"
},
"extends": "tsconfig/react-library.json",
"include": ["."],
"exclude": ["dist", "build", "node_modules"]
"exclude": ["node_modules"]
}