@osdk/generator 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/build/js/index.cjs +1421 -186
- package/build/js/index.cjs.map +1 -1
- package/build/js/index.mjs +1420 -185
- package/build/js/index.mjs.map +1 -1
- package/build/types/MinimalFs.d.ts +2 -0
- package/build/types/util/test/createMockMinimalFiles.d.ts +2 -1
- package/build/types/util/verifyOutdir.d.ts +8 -0
- package/package.json +1 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type { WriteFileFn } from "../../MinimalFs";
|
|
1
|
+
import type { ReaddirFn, WriteFileFn } from "../../MinimalFs";
|
|
2
2
|
export declare function createMockMinimalFiles(): {
|
|
3
3
|
minimalFiles: {
|
|
4
4
|
writeFile: WriteFileFn;
|
|
5
5
|
mkdir: () => Promise<void>;
|
|
6
|
+
readdir: ReaddirFn;
|
|
6
7
|
};
|
|
7
8
|
getFiles: () => {
|
|
8
9
|
[k: string]: string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { MinimalFs } from "../MinimalFs";
|
|
2
|
+
/**
|
|
3
|
+
* Verify that the target outDir does not yet exist OR is empty.
|
|
4
|
+
*
|
|
5
|
+
* Re-generating an ontology on top of itself is not supported and may leave old
|
|
6
|
+
* files around or refuse to update files with new contents in some cases.
|
|
7
|
+
*/
|
|
8
|
+
export declare function verifyOutdir(outDir: string, fs: MinimalFs): Promise<void>;
|