1 Star 1 Fork 0

Larksuite/node-sdk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
rollup.config.js 1.76 KB
一键复制 编辑 原始数据 按行查看 历史
马哲 提交于 2022-08-03 18:43 +08:00 . feat: node-sdk
import typescript from "@rollup/plugin-typescript";
import alias from '@rollup/plugin-alias';
import dts from 'rollup-plugin-dts';
import license from 'rollup-plugin-license';
import path from 'path';
import packageJSON from './package.json';
export default [{
input: './index.ts',
external: [...Object.keys(packageJSON.dependencies)],
output: {
dir: 'lib',
format: 'cjs'
},
plugins: [
alias({
entries: [
{find: '@node-sdk', replacement: path.resolve(__dirname)}
]
}),
typescript({tsconfig: false, compilerOptions: { target: 'es6' }}),
license({
banner: {
content: {
file: path.join(__dirname, 'LICENSE')
}
}
})
]
}, {
input: './index.ts',
external: [...Object.keys(packageJSON.dependencies)],
output: {
dir: 'es',
format: 'es'
},
plugins: [
alias({
entries: [
{find: '@node-sdk', replacement: path.resolve(__dirname)}
]
}),
typescript({tsconfig: false, compilerOptions: { target: 'es6' }}),
license({
banner: {
content: {
file: path.join(__dirname, 'LICENSE')
}
}
})
]
}, {
input: './index.ts',
output: {
dir: 'types',
format: 'es'
},
plugins: [
alias({
entries: [
{find: '@node-sdk', replacement: path.resolve(__dirname)}
]
}),
dts(),
license({
banner: {
content: {
file: path.join(__dirname, 'LICENSE')
}
}
})
]
}];
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/larksuite/node-sdk.git
[email protected]:larksuite/node-sdk.git
larksuite
node-sdk
node-sdk
main

搜索帮助