From c8d3fc1fd0d64e73efe91902de6254f8b06b85fa Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Fri, 12 Nov 2021 01:05:22 +0100 Subject: [PATCH] Move build.js outside of `scripts` folder --- monaco-css/{scripts => }/build.js | 8 ++++---- monaco-css/package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) rename monaco-css/{scripts => }/build.js (89%) diff --git a/monaco-css/scripts/build.js b/monaco-css/build.js similarity index 89% rename from monaco-css/scripts/build.js rename to monaco-css/build.js index 29591dcd..d2b4a9c6 100644 --- a/monaco-css/scripts/build.js +++ b/monaco-css/build.js @@ -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') }) ] }; diff --git a/monaco-css/package.json b/monaco-css/package.json index 82a29a5c..d1f6cc74 100644 --- a/monaco-css/package.json +++ b/monaco-css/package.json @@ -1,6 +1,6 @@ { "scripts": { "watch": "../node_modules/.bin/tsc -p ./src --watch", - "prepublishOnly": "node ./scripts/build" + "prepublishOnly": "node ./build" } }