create-email
Advanced tools
Comparing version
# create-email | ||
## 1.2.0-canary.1 | ||
### Patch Changes | ||
- 0c3aaa3: Show package.json's version on --version for create-email | ||
## 1.2.0-canary.0 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "create-email", | ||
"version": "1.2.0-canary.0", | ||
"version": "1.2.0-canary.1", | ||
"description": "The easiest way to get started with React Email", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -11,2 +11,9 @@ #!/usr/bin/env node | ||
const packageJson = JSON.parse( | ||
fse.readFileSync( | ||
path.resolve(import.meta.dirname, '../package.json'), | ||
'utf8', | ||
), | ||
); | ||
const getLatestVersionOfTag = async (packageName, tag) => { | ||
@@ -94,4 +101,4 @@ const response = await fetch( | ||
new Command() | ||
.name('create-email') | ||
.version('0.0.30-canary.0') | ||
.name(packageJson.name) | ||
.version(packageJson.version) | ||
.description('The easiest way to get started with React Email') | ||
@@ -98,0 +105,0 @@ .arguments('[dir]', 'Path to initialize the project') |
101564
0.24%817
0.74%