- import { defineConfig } from 'tsup';
- // import dotenv from 'dotenv';
-
- export default defineConfig({
- entry: ['src/index.ts'],
- format: ['cjs'],
- target: 'es2020',
- outDir: 'dist',
- splitting: false,
- clean: true,
- dts: false,
- shims: false,
- // env: dotenv.config().parsed,
- });
-
-
-
- {
- "compilerOptions": {
- "target": "ES2020",
- "module": "ESNext",
- "moduleResolution": "node",
- "outDir": "./dist",
- "rootDir": "./src",
- "strict": true,
- "esModuleInterop": true,
- "resolveJsonModule": true,
- "allowImportingTsExtensions": false,
- "allowSyntheticDefaultImports": true,
- "forceConsistentCasingInFileNames": true,
- "skipLibCheck": true
- },
- "include": ["src/**/*"],
- "exclude": ["node_modules", "dist", "lambda.js"],
- "ts-node": {
- "esm": true
- }
- }