-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: revert esbuild-related artifacts
- Loading branch information
1 parent
cc61fcb
commit 54df39f
Showing
4 changed files
with
15 additions
and
439 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
#!/usr/bin/env node | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
const shell = require('shelljs'); | ||
|
||
// Determine the directory based on the 'esbuild' argument | ||
const isEsbuild = process.argv.includes('--esbuild'); | ||
const currDir = process.cwd(); | ||
const outputDir = isEsbuild ? 'dist' : 'lib'; | ||
const outputTemplatesDir = path.join(currDir, outputDir, 'templates'); | ||
const libDir = path.join(currDir, 'lib'); | ||
const libTemplatesDir = path.join(libDir, 'templates'); | ||
const srcTemplatesDir = path.join(currDir, 'src', 'templates'); | ||
|
||
if (!fs.existsSync(outputDir)) { | ||
shell.mkdir(outputDir); | ||
if (!fs.existsSync(libDir)) { | ||
shell.mkdir(libDir); | ||
} | ||
|
||
shell.cp('-rf', srcTemplatesDir, outputTemplatesDir); | ||
shell.cp('-rf', srcTemplatesDir, libTemplatesDir); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.