aport-tools 4.0.0 → 4.0.2

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,53 +0,0 @@
1
- // rollup.config.mjs
2
-
3
- import babel from '@rollup/plugin-babel';
4
- import json from '@rollup/plugin-json';
5
- import typescript from '@rollup/plugin-typescript';
6
- import commonjs from '@rollup/plugin-commonjs';
7
- import resolve from '@rollup/plugin-node-resolve';
8
- import peerDepsExternal from 'rollup-plugin-peer-deps-external';
9
- import pkg from './package.json' assert { type: 'json' };
10
-
11
- export default {
12
- input: 'src/index.ts',
13
- output: [
14
- {
15
- file: pkg.main,
16
- format: 'cjs',
17
- sourcemap: true,
18
- exports: 'named',
19
- banner: `/*! ${pkg.name} v${pkg.version} | ${pkg.license} */`,
20
- },
21
- {
22
- file: pkg.module,
23
- format: 'esm',
24
- sourcemap: true,
25
- banner: `/*! ${pkg.name} v${pkg.version} | ${pkg.license} */`,
26
- },
27
- ],
28
- plugins: [
29
- peerDepsExternal(),
30
- resolve({
31
- extensions: ['.js', '.jsx', '.ts', '.tsx'],
32
- }),
33
- commonjs(),
34
- babel({
35
- extensions: ['.js', '.jsx', '.ts', '.tsx'],
36
- babelHelpers: 'bundled',
37
- include: ['src/**/*'],
38
- presets: ['@babel/preset-env', '@babel/preset-react', '@babel/preset-typescript'],
39
- }),
40
- json(), // Handles JSON imports like package.json
41
- typescript({
42
- tsconfig: './tsconfig.json',
43
- declaration: true,
44
- declarationDir: 'dist',
45
- emitDeclarationOnly: false,
46
- }),
47
- ],
48
- external: [
49
- 'react',
50
- 'react-native',
51
- '@react-native-async-storage/async-storage',
52
- ],
53
- };