doc: Added plugin dev info
This commit is contained in:
parent
04e332d91e
commit
7029477392
5 changed files with 14 additions and 2 deletions
|
|
@ -5,6 +5,7 @@ import sdkPackage from './sdk/package.json';
|
|||
import { emptyDir } from 'fs-extra';
|
||||
import { generateDtsBundle } from 'dts-bundle-generator';
|
||||
import { zodToTs, createAuxiliaryTypeStore, printNode } from 'zod-to-ts';
|
||||
import fs from 'node:fs/promises';
|
||||
|
||||
import * as types from './sdk/sdk';
|
||||
|
||||
|
|
@ -57,6 +58,7 @@ async function generateApiDeclarations ()
|
|||
peerDependencies: appPkg.dependencies
|
||||
};
|
||||
await Bun.write(path.join(outDir, 'package.json'), JSON.stringify(pkg, null, 3));
|
||||
await fs.cp('./scripts/sdk/README.md', path.join(outDir, 'README.md'));
|
||||
}
|
||||
|
||||
await generateApiDeclarations();
|
||||
Loading…
Add table
Add a link
Reference in a new issue