feat: add type dts and apiKeyObject
This commit is contained in:
16
script/dts/index.mjs
Normal file
16
script/dts/index.mjs
Normal file
@@ -0,0 +1,16 @@
|
||||
import * as dts from 'dts-bundle';
|
||||
import path from 'path';
|
||||
|
||||
const currentPath = process.cwd();
|
||||
const packagePath = path.join(currentPath, 'script/package/package.json');
|
||||
|
||||
const mainPath = path.join(currentPath, 'src/type.ts');
|
||||
const outPath = path.join(currentPath, 'types/index.d.ts');
|
||||
// node script/dts/index.mjs
|
||||
dts.bundle({
|
||||
name: 'my-library',
|
||||
main: mainPath,
|
||||
out: outPath,
|
||||
removeSource: true,
|
||||
outputAsModuleFolder: true,
|
||||
});
|
||||
Reference in New Issue
Block a user