mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 05:50:11 +01:00
Fix script for esbuild sample which cannot import .ts files
This commit is contained in:
parent
29a2735168
commit
eed1e1cf27
3 changed files with 48 additions and 10 deletions
|
|
@ -56,12 +56,7 @@ export function removeDir(_dirPath: string, keep?: (filename: string) => boolean
|
|||
rmDir(dirPath, _dirPath);
|
||||
console.log(`Deleted ${_dirPath}`);
|
||||
|
||||
/**
|
||||
* @param {string} dirPath
|
||||
* @param {string} relativeDirPath
|
||||
* @returns {boolean}
|
||||
*/
|
||||
function rmDir(dirPath, relativeDirPath) {
|
||||
function rmDir(dirPath: string, relativeDirPath: string): boolean {
|
||||
let keepsFiles = false;
|
||||
const entries = fs.readdirSync(dirPath);
|
||||
for (const entry of entries) {
|
||||
|
|
|
|||
|
|
@ -64,9 +64,8 @@ generateMetadata();
|
|||
|
||||
/**
|
||||
* Release to `dev` or `min`.
|
||||
* @param {'dev'|'min'} type
|
||||
*/
|
||||
function AMD_releaseOne(type) {
|
||||
function AMD_releaseOne(type: 'dev' | 'min') {
|
||||
const coreFiles = readFiles(`node_modules/monaco-editor-core/${type}/**/*`, {
|
||||
base: `node_modules/monaco-editor-core/${type}`
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue