create-email
Advanced tools
Comparing version
{ | ||
"name": "create-email", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "The easiest way to get started with React Email", | ||
"main": "src/index.js", | ||
"type": "module", | ||
"license": "MIT", | ||
"dependencies": { | ||
"commander": "^9.4.1", | ||
"fs-extra": "^10.1.0" | ||
"fs-extra": "^10.1.0", | ||
"log-symbols": "^5.1.0", | ||
"ora": "^6.1.2", | ||
"tree-node-cli": "^1.6.0" | ||
}, | ||
@@ -11,0 +15,0 @@ "bin": { |
@@ -1,9 +0,15 @@ | ||
#!/usr/bin/env node | ||
#!/usr/bin/env node --no-warnings | ||
const { Command } = require('commander'); | ||
const path = require('path'); | ||
const fse = require('fs-extra'); | ||
const packageJson = require('../package.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'; | ||
import packageJson from '../package.json' assert { type: "json" }; | ||
const init = (name) => { | ||
const spinner = ora('Preparing files...\n').start(); | ||
let projectPath = name; | ||
@@ -19,2 +25,3 @@ | ||
const __dirname = path.dirname(fileURLToPath(import.meta.url)); | ||
const templatePath = path.resolve(__dirname, '../template'); | ||
@@ -24,2 +31,15 @@ const resolvedProjectPath = path.resolve(projectPath); | ||
fse.copySync(templatePath, resolvedProjectPath, { recursive: true }); | ||
const fileTree = tree(projectPath, { | ||
allFiles: true, | ||
exclude: [/node_modules/], | ||
maxDepth: 4, | ||
}); | ||
console.log(fileTree); | ||
spinner.stopAndPersist({ | ||
symbol: logSymbols.success, | ||
text: 'React Email Starter files ready', | ||
}); | ||
} | ||
@@ -26,0 +46,0 @@ |
@@ -20,4 +20,4 @@ { | ||
"@react-email/text": "^0.0.2", | ||
"react-email": "^1.1.0" | ||
"react-email": "^1.1.1" | ||
} | ||
} |
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
21991
2.97%624
2.63%0
-100%Yes
NaN5
150%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added