lint fix
This commit is contained in:
parent
2308af90ba
commit
38f59f9f36
1 changed files with 1 additions and 11 deletions
|
@ -19,12 +19,11 @@ try {
|
||||||
filename = fileURLToPath(import.meta.url)
|
filename = fileURLToPath(import.meta.url)
|
||||||
}
|
}
|
||||||
const newDesignDir = join(filename, '../..')
|
const newDesignDir = join(filename, '../..')
|
||||||
const monorepoDesignsDir = join(newDesignDir, '../../designs')
|
const designSrcDir = 'design/src'
|
||||||
|
|
||||||
const nl = '\n'
|
const nl = '\n'
|
||||||
const tab = ' '
|
const tab = ' '
|
||||||
const nlt = nl + tab
|
const nlt = nl + tab
|
||||||
const designSrcDir = 'design/src'
|
|
||||||
|
|
||||||
// Checks for node 16 or higher
|
// Checks for node 16 or higher
|
||||||
export const checkNodeVersion = () => {
|
export const checkNodeVersion = () => {
|
||||||
|
@ -372,15 +371,6 @@ export const createEnvironment = async (choices) => {
|
||||||
|
|
||||||
// Copy/Template files
|
// Copy/Template files
|
||||||
try {
|
try {
|
||||||
try {
|
|
||||||
await stat(join(monorepoDesignsDir, choices.template))
|
|
||||||
if (choices.template !== 'tutorial') {
|
|
||||||
templateVars.block = choices.template
|
|
||||||
}
|
|
||||||
} catch (err) {
|
|
||||||
// fs.stat throws an error if no such file or directory exists
|
|
||||||
}
|
|
||||||
|
|
||||||
await oraPromise(copyAll(config, choices), {
|
await oraPromise(copyAll(config, choices), {
|
||||||
text:
|
text:
|
||||||
chalk.white.bold('🟨⬜⬜⬜ Copying template files') +
|
chalk.white.bold('🟨⬜⬜⬜ Copying template files') +
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue