mirror of
https://github.com/fluencelabs/fluence-js.git
synced 2025-06-25 22:01:32 +00:00
feat!: Expose updated JS Client API via js-client.api
package (#246)
This commit is contained in:
33
packages/client/api/dtsbundle.cjs
Normal file
33
packages/client/api/dtsbundle.cjs
Normal file
@ -0,0 +1,33 @@
|
||||
// @ts-check
|
||||
|
||||
// If won't use `@ts-check` - just remove that comments (with `@type` JSDoc below).
|
||||
|
||||
/** @type import('dts-bundle-generator/config-schema').OutputOptions */
|
||||
const commonOutputParams = {
|
||||
inlineDeclareGlobals: false,
|
||||
sortNodes: true,
|
||||
};
|
||||
|
||||
/** @type import('dts-bundle-generator/config-schema').BundlerConfig */
|
||||
const config = {
|
||||
compilationOptions: {
|
||||
preferredConfigPath: './tsconfig.json',
|
||||
},
|
||||
|
||||
entries: [
|
||||
{
|
||||
filePath: './src/index.ts',
|
||||
outFile: './dist/index.d.ts',
|
||||
noCheck: false,
|
||||
|
||||
libraries: {
|
||||
importedLibraries: ['node', '@types/node'],
|
||||
inlinedLibraries: ['@fluencelabs/avm', '@fluencelabs/marine-js'],
|
||||
},
|
||||
|
||||
output: commonOutputParams,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
module.exports = config;
|
Reference in New Issue
Block a user