File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3737 cache : pnpm
3838 - run : pnpm install --frozen-lockfile
3939 - run : pnpm build
40+ - name : Verify API surface is up to date
41+ run : git diff --exit-code '**/api-surface*.md' || (echo "API surface is out of date. Run 'pnpm build' and commit the changes." && exit 1)
4042 - run : pnpm check
4143 test :
4244 runs-on : ${{ matrix.os }}
Original file line number Diff line number Diff line change @@ -639,6 +639,7 @@ declare function addFragment(
639639 content : string ,
640640 options ? : {
641641 mode? : ' append' | ' prepend' ;
642+ language? : ' ts' | ' js' ;
642643 }
643644): void ;
644645type TransformFn = (content : string ) => string ;
@@ -748,11 +749,13 @@ type Package = {
748749 keywords? : string [];
749750 workspaces? : string [];
750751};
752+
751753declare function fileExists(cwd : string , filePath : string ): boolean ;
752754
753755declare function loadFile(cwd : string , filePath : string ): string ;
754756
755757declare function saveFile(cwd : string , filePath : string , content : string ): void ;
758+
756759declare function loadPackageJson(cwd : string ): {
757760 source: string ;
758761 data: Package ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ type FileType = {
2121 condition? : ConditionDefinition ;
2222 content: (editor : FileEditor ) => string ;
2323};
24- /** @deprecated use `create({ cwd, ...options })` instead */
24+ /** @deprecated use `create({ cwd, ...options })` instead. */
2525declare function create(cwd : string , options : Omit <Options , ' cwd' >): void ;
2626declare function create(options : Options ): void ;
2727export {
You can’t perform that action at this time.
0 commit comments