Browse Source

Use typescript.js as source for typescriptServices

Jake Bailey 2 years ago
parent
commit
d63c89d832

+ 3 - 11
build/importTypescript.ts

@@ -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
-		.readFileSync(path.join(TYPESCRIPT_LIB_SOURCE, 'typescriptServices.js'))
-		.toString();
+	let tsServices = fs.readFileSync(path.join(TYPESCRIPT_LIB_SOURCE, 'typescript.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
-		.readFileSync(path.join(TYPESCRIPT_LIB_SOURCE, 'typescriptServices.d.ts'))
-		.toString();
-	dtsServices += `
-// MONACOCHANGE
-export = ts;
-// END MONACOCHANGE
-`;
+	let dtsServices = fs.readFileSync(path.join(TYPESCRIPT_LIB_SOURCE, 'typescript.d.ts')).toString();
+
 	fs.writeFileSync(
 	fs.writeFileSync(
 		path.join(TYPESCRIPT_LIB_DESTINATION, 'typescriptServices.d.ts'),
 		path.join(TYPESCRIPT_LIB_DESTINATION, 'typescriptServices.d.ts'),
 		generatedNote + dtsServices
 		generatedNote + dtsServices

+ 1 - 0
src/language/typescript/lib/typescriptServices-amd.js

@@ -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

+ 1 - 3
src/language/typescript/lib/typescriptServices.d.ts

@@ -7594,6 +7594,4 @@ declare namespace ts {
     const isIdentifierOrPrivateIdentifier: (node: Node) => node is MemberName;
     const isIdentifierOrPrivateIdentifier: (node: Node) => node is MemberName;
 }
 }
 
 
-// MONACOCHANGE
-export = ts;
-// END MONACOCHANGE
+export = ts;

+ 1 - 0
src/language/typescript/lib/typescriptServices.js

@@ -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;