Skip to content

Baseline public API #18897

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Oct 3, 2017
Merged

Baseline public API #18897

merged 10 commits into from
Oct 3, 2017

Conversation

weswigham
Copy link
Member

This adds unit tests which baseline our public API. This should help us be conscious of what is added or removed to it, as a test will fail until you accept the change.

Gulpfile.ts Outdated
@@ -478,7 +478,7 @@ gulp.task(tsserverLibraryFile, /*help*/ false, [servicesFile, typesMapJson], (do
.pipe(gulp.dest("src/server")),
dts.pipe(prependCopyright(/*outputCopyright*/ true))
.pipe(insert.transform((content) => {
return content + "\r\nexport = ts;\r\nexport as namespace ts;";
return content.replace(/^(\s*)(export )?const enum (\S+) {(\s*)$/gm, "$1$2enum $3 {$4") + "\nexport = ts;\nexport as namespace ts;";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This regex deserves a comment

@weswigham weswigham merged commit 7f7d0c6 into microsoft:master Oct 3, 2017
@weswigham weswigham deleted the baseline-public-api branch October 3, 2017 00:37
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants