👷 Transpile components for better DX
This commit is contained in:
committed by
Baptiste Arnaud
parent
898367a33b
commit
c1dd4d403e
@@ -1,3 +1,4 @@
|
||||
export * from './utils'
|
||||
export * from './storage'
|
||||
export * from './sendEmailNotification'
|
||||
export * from './encryption'
|
||||
@@ -1,6 +1,4 @@
|
||||
export * from './utils'
|
||||
export * from './api'
|
||||
export * from './encryption'
|
||||
export * from './results'
|
||||
export * from './pricing'
|
||||
export * from './playwright'
|
||||
@@ -3,27 +3,15 @@
|
||||
"version": "1.0.0",
|
||||
"license": "AGPL-3.0-or-later",
|
||||
"private": true,
|
||||
"main": "dist/cjs/index.js",
|
||||
"module": "dist/esm/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"scripts": {
|
||||
"build": "pnpm rollup -c",
|
||||
"dx": "pnpm rollup -c --watch"
|
||||
},
|
||||
"main": "./index.ts",
|
||||
"types": "./index.ts",
|
||||
"devDependencies": {
|
||||
"@rollup/plugin-commonjs": "22.0.2",
|
||||
"@rollup/plugin-node-resolve": "^14.0.1",
|
||||
"@rollup/plugin-typescript": "8.5.0",
|
||||
"@types/nodemailer": "6.4.5",
|
||||
"aws-sdk": "2.1213.0",
|
||||
"db": "workspace:*",
|
||||
"models": "workspace:*",
|
||||
"next": "12.3.0",
|
||||
"nodemailer": "^6.7.8",
|
||||
"rollup": "2.79.0",
|
||||
"rollup-plugin-dts": "^4.2.2",
|
||||
"rollup-plugin-peer-deps-external": "^2.2.4",
|
||||
"tslib": "^2.4.0",
|
||||
"typescript": "^4.8.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
import resolve from '@rollup/plugin-node-resolve'
|
||||
import commonjs from '@rollup/plugin-commonjs'
|
||||
import typescript from '@rollup/plugin-typescript'
|
||||
import dts from 'rollup-plugin-dts'
|
||||
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
|
||||
|
||||
const packageJson = require('./package.json')
|
||||
|
||||
export default [
|
||||
{
|
||||
input: 'src/index.ts',
|
||||
output: [
|
||||
{
|
||||
file: packageJson.main,
|
||||
format: 'cjs',
|
||||
sourcemap: true,
|
||||
inlineDynamicImports: true,
|
||||
},
|
||||
{
|
||||
file: packageJson.module,
|
||||
format: 'esm',
|
||||
sourcemap: true,
|
||||
inlineDynamicImports: true,
|
||||
},
|
||||
],
|
||||
plugins: [
|
||||
peerDepsExternal(),
|
||||
resolve(),
|
||||
commonjs(),
|
||||
typescript({ tsconfig: './tsconfig.json' }),
|
||||
],
|
||||
},
|
||||
{
|
||||
input: 'dist/esm/index.d.ts',
|
||||
output: [{ file: 'dist/index.d.ts', format: 'esm' }],
|
||||
plugins: [dts()],
|
||||
},
|
||||
]
|
||||
Reference in New Issue
Block a user