mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 09:20:10 +01:00
Run prettier after importing editor in webpack-plugin
This commit is contained in:
parent
e1481e0174
commit
68d7a125ad
1 changed files with 5 additions and 1 deletions
|
|
@ -8,7 +8,7 @@
|
|||
const glob = require('glob');
|
||||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
const { REPO_ROOT } = require('./utils');
|
||||
const { REPO_ROOT, prettier } = require('./utils');
|
||||
|
||||
const customFeatureLabels = {
|
||||
'vs/editor/browser/controller/coreCommands': 'coreCommands',
|
||||
|
|
@ -175,6 +175,8 @@ export type EditorLanguage = ${result.map((el) => `'${el.label}'`).join(' | ')};
|
|||
code.replace(/\r\n/g, '\n')
|
||||
);
|
||||
|
||||
prettier('webpack-plugin/src/languages.ts');
|
||||
|
||||
const readmeLanguages = JSON.stringify(result.map((r) => r.label))
|
||||
.replace(/"/g, "'")
|
||||
.replace(/','/g, "', '");
|
||||
|
|
@ -275,6 +277,8 @@ export type NegatedEditorFeature = ${result.map((el) => `'!${el.label}'`).join('
|
|||
code.replace(/\r\n/g, '\n')
|
||||
);
|
||||
|
||||
prettier('webpack-plugin/src/features.ts');
|
||||
|
||||
const readmeFeatures = JSON.stringify(result.map((r) => r.label))
|
||||
.replace(/"/g, "'")
|
||||
.replace(/','/g, "', '");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue