Move build.js outside of `scripts` folder

pull/2764/head
Alex Dima 2021-11-12 01:05:22 +01:00
parent 829ee45850
commit c8d3fc1fd0
No known key found for this signature in database
GPG Key ID: 39563C1504FDD0C9
2 changed files with 5 additions and 5 deletions

View File

@ -6,8 +6,7 @@
const esbuild = require('esbuild');
const alias = require('esbuild-plugin-alias');
const path = require('path');
const cp = require('child_process');
const { removeDir, tsc, dts } = require('../../build/utils');
const { removeDir, tsc, dts } = require('../build/utils');
removeDir(`monaco-css/release`);
removeDir(`monaco-css/out`);
@ -46,7 +45,7 @@ build({
outdir: 'release/esm/',
plugins: [
alias({
'vscode-nls': path.join(__dirname, '../src/fillers/vscode-nls.ts')
'vscode-nls': path.join(__dirname, 'src/fillers/vscode-nls.ts')
})
]
});
@ -77,7 +76,8 @@ function buildOneAMD(type, entryPoint, banner) {
outdir: `release/${type}/`,
plugins: [
alias({
'monaco-editor-core': path.join(__dirname, '../src/fillers/monaco-editor-core-amd.ts')
'vscode-nls': path.join(__dirname, 'src/fillers/vscode-nls.ts'),
'monaco-editor-core': path.join(__dirname, 'src/fillers/monaco-editor-core-amd.ts')
})
]
};

View File

@ -1,6 +1,6 @@
{
"scripts": {
"watch": "../node_modules/.bin/tsc -p ./src --watch",
"prepublishOnly": "node ./scripts/build"
"prepublishOnly": "node ./build"
}
}