feat: first step

This commit is contained in:
2025-03-16 00:22:42 +08:00
commit 764addd7f6
41 changed files with 6917 additions and 0 deletions

38
rslib.config.ts Normal file
View File

@@ -0,0 +1,38 @@
import { defineConfig } from '@rslib/core';
export default defineConfig({
source: {
tsconfigPath: './tsconfig.lib.json',
},
lib: [
{
format: 'esm',
syntax: 'es2021',
bundle: false,
dts: {
bundle: false,
build: false,
distPath: './dist',
},
source: {
entry: {
index: ['src/**/*.ts'],
},
},
},
{
format: 'cjs',
syntax: 'es2021',
dts: false,
bundle: true,
source: {
entry: {
index: './src/index.ts',
},
},
},
],
output: {
target: 'web',
},
});