bireader 4.0.2 → 4.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/rollup.config.mjs DELETED
@@ -1,81 +0,0 @@
1
- import typescript from '@rollup/plugin-typescript';
2
- import dts from 'rollup-plugin-dts';
3
- import { nodeResolve } from '@rollup/plugin-node-resolve';
4
- import commonjs from '@rollup/plugin-commonjs';
5
-
6
- export default [
7
- // JS build (CJS + ESM)
8
- {
9
- input: './src/indexBrowser.ts',
10
- output: [
11
- {
12
- file: './dist/index.browser.js',
13
- format: 'esm',
14
- sourcemap: true
15
- }
16
- ],
17
- plugins: [
18
- typescript({ tsconfig: './tsconfig.json' })
19
- ],
20
- external: ['node:fs', 'node:buffer']
21
- },
22
- {
23
- input: './src/indexImport.ts',
24
- output: [
25
- {
26
- file: './dist/index.cjs.js',
27
- format: 'cjs',
28
- exports: 'named',
29
- sourcemap: true
30
- },
31
- {
32
- file: './dist/index.esm.js',
33
- format: 'esm',
34
- sourcemap: true
35
- }
36
- ],
37
- plugins: [
38
- nodeResolve(),
39
- commonjs(),
40
- typescript({ tsconfig: './tsconfig.json' })
41
- ],
42
- external: ['fs', 'buffer'] // Node built-ins
43
- },
44
- // Types build
45
- {
46
- input: './dist/indexImport.d.ts',
47
- output: {
48
- file: './dist/index.esm.d.ts',
49
- format: 'es'
50
- },
51
- plugins: [dts()],
52
- external: ['node:fs', 'node:buffer']
53
- },
54
- {
55
- input: './dist/indexImport.d.ts',
56
- output: {
57
- file: './dist/index.d.ts',
58
- format: 'es'
59
- },
60
- plugins: [dts()],
61
- external: ['node:fs', 'node:buffer']
62
- },
63
- {
64
- input: './dist/indexBrowser.d.ts',
65
- output: {
66
- file: './dist/index.browser.d.ts',
67
- format: 'es'
68
- },
69
- plugins: [dts()],
70
- external: ['node:fs', 'node:buffer']
71
- },
72
- {
73
- input: './dist/indexImport.d.ts',
74
- output: {
75
- file: './dist/index.cjs.d.ts',
76
- format: 'cjs'
77
- },
78
- plugins: [dts()],
79
- external: ['node:fs', 'node:buffer']
80
- }
81
- ];