mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 23:13:02 +01:00
Set printWidth to 100
This commit is contained in:
parent
928e5ba14e
commit
5adfc2c139
12 changed files with 117 additions and 242 deletions
|
|
@ -40,26 +40,17 @@ function bundleOne(moduleId, exclude) {
|
|||
packages: [
|
||||
{
|
||||
name: 'vscode-json-languageservice',
|
||||
location: path.join(
|
||||
REPO_ROOT,
|
||||
'node_modules/vscode-json-languageservice/lib/umd'
|
||||
),
|
||||
location: path.join(REPO_ROOT, 'node_modules/vscode-json-languageservice/lib/umd'),
|
||||
main: 'jsonLanguageService'
|
||||
},
|
||||
{
|
||||
name: 'vscode-languageserver-types',
|
||||
location: path.join(
|
||||
REPO_ROOT,
|
||||
'node_modules/vscode-languageserver-types/lib/umd'
|
||||
),
|
||||
location: path.join(REPO_ROOT, 'node_modules/vscode-languageserver-types/lib/umd'),
|
||||
main: 'main'
|
||||
},
|
||||
{
|
||||
name: 'vscode-languageserver-textdocument',
|
||||
location: path.join(
|
||||
REPO_ROOT,
|
||||
'node_modules/vscode-languageserver-textdocument/lib/umd'
|
||||
),
|
||||
location: path.join(REPO_ROOT, 'node_modules/vscode-languageserver-textdocument/lib/umd'),
|
||||
main: 'main'
|
||||
},
|
||||
{
|
||||
|
|
@ -80,14 +71,8 @@ function bundleOne(moduleId, exclude) {
|
|||
]
|
||||
},
|
||||
async function (buildResponse) {
|
||||
const devFilePath = path.join(
|
||||
REPO_ROOT,
|
||||
'release/dev/' + moduleId + '.js'
|
||||
);
|
||||
const minFilePath = path.join(
|
||||
REPO_ROOT,
|
||||
'release/min/' + moduleId + '.js'
|
||||
);
|
||||
const devFilePath = path.join(REPO_ROOT, 'release/dev/' + moduleId + '.js');
|
||||
const minFilePath = path.join(REPO_ROOT, 'release/min/' + moduleId + '.js');
|
||||
const fileContents = fs.readFileSync(devFilePath).toString();
|
||||
console.log(`Minifying ${devFilePath}...`);
|
||||
const result = await Terser.minify(fileContents, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue