Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm build
- name: Verify API surface is up to date
run: git diff --exit-code '**/api-surface*.md' || (echo "API surface is out of date. Run 'pnpm build' and commit the changes." && exit 1)
- run: pnpm check
test:
runs-on: ${{ matrix.os }}
Expand Down
3 changes: 3 additions & 0 deletions packages/sv-utils/api-surface.md
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ declare function addFragment(
content: string,
options?: {
mode?: 'append' | 'prepend';
language?: 'ts' | 'js';
}
): void;
type TransformFn = (content: string) => string;
Expand Down Expand Up @@ -748,11 +749,13 @@ type Package = {
keywords?: string[];
workspaces?: string[];
};

declare function fileExists(cwd: string, filePath: string): boolean;

declare function loadFile(cwd: string, filePath: string): string;

declare function saveFile(cwd: string, filePath: string, content: string): void;

declare function loadPackageJson(cwd: string): {
source: string;
data: Package;
Expand Down
2 changes: 1 addition & 1 deletion packages/sv/api-surface.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type FileType = {
condition?: ConditionDefinition;
content: (editor: FileEditor) => string;
};
/** @deprecated use `create({ cwd, ...options })` instead */
/** @deprecated use `create({ cwd, ...options })` instead. */
declare function create(cwd: string, options: Omit<Options, 'cwd'>): void;
declare function create(options: Options): void;
export {
Expand Down
Loading