mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 07:00:11 +01:00
Use typescript.js as source for typescriptServices
This commit is contained in:
parent
22698f2c1b
commit
d63c89d832
4 changed files with 6 additions and 14 deletions
|
|
@ -35,9 +35,7 @@ const TYPESCRIPT_LIB_DESTINATION = path.join(REPO_ROOT, 'src/language/typescript
|
||||||
export const typescriptVersion = "${typeScriptDependencyVersion}";\n`
|
export const typescriptVersion = "${typeScriptDependencyVersion}";\n`
|
||||||
);
|
);
|
||||||
|
|
||||||
let tsServices = fs
|
let tsServices = fs.readFileSync(path.join(TYPESCRIPT_LIB_SOURCE, 'typescript.js')).toString();
|
||||||
.readFileSync(path.join(TYPESCRIPT_LIB_SOURCE, 'typescriptServices.js'))
|
|
||||||
.toString();
|
|
||||||
|
|
||||||
// Ensure we never run into the node system...
|
// Ensure we never run into the node system...
|
||||||
// (this also removes require calls that trick webpack into shimming those modules...)
|
// (this also removes require calls that trick webpack into shimming those modules...)
|
||||||
|
|
@ -149,14 +147,8 @@ export var typescript = ts;
|
||||||
stripSourceMaps(tsServices_esm)
|
stripSourceMaps(tsServices_esm)
|
||||||
);
|
);
|
||||||
|
|
||||||
let dtsServices = fs
|
let dtsServices = fs.readFileSync(path.join(TYPESCRIPT_LIB_SOURCE, 'typescript.d.ts')).toString();
|
||||||
.readFileSync(path.join(TYPESCRIPT_LIB_SOURCE, 'typescriptServices.d.ts'))
|
|
||||||
.toString();
|
|
||||||
dtsServices += `
|
|
||||||
// MONACOCHANGE
|
|
||||||
export = ts;
|
|
||||||
// END MONACOCHANGE
|
|
||||||
`;
|
|
||||||
fs.writeFileSync(
|
fs.writeFileSync(
|
||||||
path.join(TYPESCRIPT_LIB_DESTINATION, 'typescriptServices.d.ts'),
|
path.join(TYPESCRIPT_LIB_DESTINATION, 'typescriptServices.d.ts'),
|
||||||
generatedNote + dtsServices
|
generatedNote + dtsServices
|
||||||
|
|
|
||||||
|
|
@ -163529,6 +163529,7 @@ var ts;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// MONACOCHANGE
|
// MONACOCHANGE
|
||||||
// Defining the entire module name because r.js has an issue and cannot bundle this file
|
// Defining the entire module name because r.js has an issue and cannot bundle this file
|
||||||
// correctly with an anonymous define call
|
// correctly with an anonymous define call
|
||||||
|
|
|
||||||
|
|
@ -7594,6 +7594,4 @@ declare namespace ts {
|
||||||
const isIdentifierOrPrivateIdentifier: (node: Node) => node is MemberName;
|
const isIdentifierOrPrivateIdentifier: (node: Node) => node is MemberName;
|
||||||
}
|
}
|
||||||
|
|
||||||
// MONACOCHANGE
|
export = ts;
|
||||||
export = ts;
|
|
||||||
// END MONACOCHANGE
|
|
||||||
|
|
@ -163529,6 +163529,7 @@ var ts;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// MONACOCHANGE
|
// MONACOCHANGE
|
||||||
export var createClassifier = ts.createClassifier;
|
export var createClassifier = ts.createClassifier;
|
||||||
export var createLanguageService = ts.createLanguageService;
|
export var createLanguageService = ts.createLanguageService;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue