create-email
Advanced tools
Comparing version
{ | ||
"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" | ||
} | ||
} |
#!/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"] | ||
} |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
183821
0.25%615
2.5%0
-100%1
Infinity%