aesirx-analytics 1.0.0 → 1.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,76 +0,0 @@
1
- import 'dotenv/config';
2
- import { terser } from 'rollup-plugin-terser';
3
- import { babel } from '@rollup/plugin-babel';
4
- import { nodeResolve } from '@rollup/plugin-node-resolve';
5
- import commonjs from '@rollup/plugin-commonjs';
6
- import json from '@rollup/plugin-json';
7
- import replace from '@rollup/plugin-replace';
8
- import typescript from 'rollup-plugin-typescript2';
9
-
10
- const configPlugins = [
11
- nodeResolve({
12
- extensions: ['.js', '.jsx'],
13
- main: true,
14
- browser: true,
15
- }),
16
- babel({
17
- babelHelpers: 'runtime',
18
- skipPreflightCheck: true,
19
- exclude: 'node_modules/**',
20
- extensions: ['.js', '.jsx', '.ts', '.tsx'],
21
- }),
22
- commonjs(),
23
- json(),
24
- replace({
25
- 'process.env': JSON.stringify({
26
- ENDPOINT_ANALYTICS_URL: process.env.ENDPOINT_ANALYTICS_URL,
27
- }),
28
- preventAssignment: true,
29
- }),
30
- terser({ compress: { evaluate: false } }),
31
- ];
32
-
33
- export default [
34
- {
35
- input: 'src/index.js',
36
- external: ['react', 'react-dom'],
37
- output: [
38
- {
39
- file: 'build/lib/bundles/bundle.esm.min.js',
40
- format: 'esm',
41
- plugins: [terser()],
42
- sourcemap: true,
43
- },
44
- ],
45
- plugins: configPlugins,
46
- },
47
- {
48
- input: 'src/index.js',
49
- external: ['react', 'react-dom'],
50
- output: [
51
- {
52
- file: 'build/lib/types/index.min.js',
53
- },
54
- ],
55
- plugins: [
56
- ...configPlugins,
57
- typescript({
58
- tsconfig: 'tsconfig.json',
59
- allowJs: true,
60
- include: ['*.js+(|x)', '**/*.js+(|x)'],
61
- exclude: ['./node_modules/**/*'],
62
- }),
63
- ],
64
- },
65
- {
66
- input: 'src/analytics.js',
67
- output: [
68
- {
69
- file: 'build/analytics.js',
70
- format: 'iife',
71
- name: 'AesirAnalytics',
72
- },
73
- ],
74
- plugins: configPlugins,
75
- },
76
- ];
package/tsconfig.json DELETED
@@ -1,30 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "listEmittedFiles": false,
4
- "outDir": "build/lib/types",
5
- "declaration": true,
6
- "declarationMap": true,
7
- "module": "ESNext",
8
- "target": "ES6",
9
- "noImplicitAny": true,
10
- "noImplicitThis": true,
11
- "removeComments": false,
12
- "suppressImplicitAnyIndexErrors": true,
13
- "sourceMap": true,
14
- "pretty": true,
15
- "allowJs": true,
16
- "jsx": "react",
17
- "lib": [
18
- "es2016",
19
- "dom"
20
- ]
21
- },
22
- "include": [
23
- "src/**/*"
24
- ],
25
- "exclude": [
26
- "./node_modules/**/*",
27
- "./build/**/*",
28
- "./src/analytics.js",
29
- ],
30
- }