Avoid going through separate package.json files

This commit is contained in:
Alexandru Dima 2021-11-12 14:14:05 +01:00
parent d2e1d5104f
commit aa5bb2cfa7
No known key found for this signature in database
GPG key ID: 39563C1504FDD0C9
13 changed files with 38 additions and 30 deletions

View file

@ -19,18 +19,22 @@ dts(
);
buildESM({
base: 'monaco-html',
entryPoints: ['src/monaco.contribution.ts', 'src/htmlMode.ts', 'src/html.worker.ts'],
external: ['monaco-editor-core', '*/htmlMode']
});
buildAMD({
base: 'monaco-html',
entryPoint: 'src/monaco.contribution.ts',
banner: 'define("vs/language/html/monaco.contribution",["vs/editor/editor.api"],()=>{'
});
buildAMD({
base: 'monaco-html',
entryPoint: 'src/htmlMode.ts',
banner: 'define("vs/language/html/htmlMode",["vs/editor/editor.api"],()=>{'
});
buildAMD({
base: 'monaco-html',
entryPoint: 'src/htmlWorker.ts',
banner: 'define("vs/language/html/htmlWorker",[],()=>{'
});

View file

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