add io and remove adapter
Some checks failed
Publish to npm / publish (push) Has been cancelled

This commit is contained in:
2024-10-06 12:48:10 +08:00
parent 4e38c3a74e
commit 77e6394266
4 changed files with 26 additions and 19 deletions

View File

@@ -18,23 +18,24 @@ export default [
typescript({
allowImportingTsExtensions: true,
noEmit: true,
exclude: ['src/node-adapter.ts'],
}), // 使用 @rollup/plugin-typescript 处理 TypeScript 文件
],
},
{
input: 'src/node-adapter.ts', // TypeScript 入口文件
output: {
file: 'dist/node-adapter.js', // 输出文件
format: 'es', // 输出格式设置为 ES 模块
},
plugins: [
resolve(), // 使用 @rollup/plugin-node-resolve 解析 node_modules 中的模块
typescript({
allowImportingTsExtensions: true,
noEmit: true,
}), // 使用 @rollup/plugin-typescript 处理 TypeScript 文件
],
},
// {
// input: 'src/node-adapter.ts', // TypeScript 入口文件
// output: {
// file: 'dist/node-adapter.js', // 输出文件
// format: 'es', // 输出格式设置为 ES 模块
// },
// plugins: [
// resolve(), // 使用 @rollup/plugin-node-resolve 解析 node_modules 中的模块
// typescript({
// allowImportingTsExtensions: true,
// noEmit: true,
// }), // 使用 @rollup/plugin-typescript 处理 TypeScript 文件
// ],
// },
{
input: 'src/ws.ts', // TypeScript 入口文件
output: {
@@ -46,6 +47,7 @@ export default [
typescript({
allowImportingTsExtensions: true,
noEmit: true,
declaration: false,
}), // 使用 @rollup/plugin-typescript 处理 TypeScript 文件
],
},