@nam088/zca-js 1.0.0 → 3.0.0
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/CODE_OF_CONDUCT.md +37 -36
- package/CONTRIBUTING.md +162 -154
- package/README.md +22 -22
- package/SECURITY.md +25 -20
- package/dist/index.cjs +6398 -9805
- package/dist/index.d.cts +3395 -0
- package/dist/index.d.ts +1293 -1294
- package/dist/index.js +6321 -9784
- package/{eslint.config.mjs → eslint.config.js} +0 -6
- package/package.json +18 -30
- package/tsup.config.ts +17 -0
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.min.cjs +0 -2
- package/dist/index.min.cjs.map +0 -1
- package/dist/index.min.js +0 -2
- package/dist/index.min.js.map +0 -1
- package/index.d.ts +0 -2
- package/rollup.config.js +0 -110
package/rollup.config.js
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
const typescript = require('@rollup/plugin-typescript');
|
|
2
|
-
const resolve = require('@rollup/plugin-node-resolve');
|
|
3
|
-
const commonjs = require('@rollup/plugin-commonjs');
|
|
4
|
-
const dts = require('rollup-plugin-dts').default;
|
|
5
|
-
const terser = require('@rollup/plugin-terser');
|
|
6
|
-
|
|
7
|
-
// Auto-detect external dependencies from package.json
|
|
8
|
-
const pkg = require('./package.json');
|
|
9
|
-
const external = [
|
|
10
|
-
...Object.keys(pkg.dependencies || {}),
|
|
11
|
-
...Object.keys(pkg.peerDependencies || {}),
|
|
12
|
-
'node:crypto',
|
|
13
|
-
'node:fs',
|
|
14
|
-
'node:path',
|
|
15
|
-
'http',
|
|
16
|
-
'events'
|
|
17
|
-
];
|
|
18
|
-
|
|
19
|
-
// Shared plugins
|
|
20
|
-
const sharedPlugins = [
|
|
21
|
-
resolve({
|
|
22
|
-
preferBuiltins: true
|
|
23
|
-
}),
|
|
24
|
-
commonjs(),
|
|
25
|
-
typescript({
|
|
26
|
-
tsconfig: './tsconfig.json',
|
|
27
|
-
declaration: false,
|
|
28
|
-
declarationMap: false,
|
|
29
|
-
sourceMap: true
|
|
30
|
-
})
|
|
31
|
-
];
|
|
32
|
-
|
|
33
|
-
module.exports = [
|
|
34
|
-
// ESM build (development)
|
|
35
|
-
{
|
|
36
|
-
input: 'src/index.ts',
|
|
37
|
-
output: {
|
|
38
|
-
file: 'dist/index.js',
|
|
39
|
-
format: 'esm',
|
|
40
|
-
sourcemap: true,
|
|
41
|
-
generatedCode: 'es2015'
|
|
42
|
-
},
|
|
43
|
-
external,
|
|
44
|
-
plugins: sharedPlugins
|
|
45
|
-
},
|
|
46
|
-
// ESM build (production - minified)
|
|
47
|
-
{
|
|
48
|
-
input: 'src/index.ts',
|
|
49
|
-
output: {
|
|
50
|
-
file: 'dist/index.min.js',
|
|
51
|
-
format: 'esm',
|
|
52
|
-
sourcemap: true,
|
|
53
|
-
generatedCode: 'es2015'
|
|
54
|
-
},
|
|
55
|
-
external,
|
|
56
|
-
plugins: [
|
|
57
|
-
...sharedPlugins,
|
|
58
|
-
terser({
|
|
59
|
-
compress: {
|
|
60
|
-
drop_console: true,
|
|
61
|
-
drop_debugger: true
|
|
62
|
-
}
|
|
63
|
-
})
|
|
64
|
-
]
|
|
65
|
-
},
|
|
66
|
-
// CJS build (development)
|
|
67
|
-
{
|
|
68
|
-
input: 'src/index.ts',
|
|
69
|
-
output: {
|
|
70
|
-
file: 'dist/index.cjs',
|
|
71
|
-
format: 'cjs',
|
|
72
|
-
sourcemap: true,
|
|
73
|
-
exports: 'named',
|
|
74
|
-
generatedCode: 'es5'
|
|
75
|
-
},
|
|
76
|
-
external,
|
|
77
|
-
plugins: sharedPlugins
|
|
78
|
-
},
|
|
79
|
-
// CJS build (production - minified)
|
|
80
|
-
{
|
|
81
|
-
input: 'src/index.ts',
|
|
82
|
-
output: {
|
|
83
|
-
file: 'dist/index.min.cjs',
|
|
84
|
-
format: 'cjs',
|
|
85
|
-
sourcemap: true,
|
|
86
|
-
exports: 'named',
|
|
87
|
-
generatedCode: 'es5'
|
|
88
|
-
},
|
|
89
|
-
external,
|
|
90
|
-
plugins: [
|
|
91
|
-
...sharedPlugins,
|
|
92
|
-
terser({
|
|
93
|
-
compress: {
|
|
94
|
-
drop_console: true,
|
|
95
|
-
drop_debugger: true
|
|
96
|
-
}
|
|
97
|
-
})
|
|
98
|
-
]
|
|
99
|
-
},
|
|
100
|
-
// Types
|
|
101
|
-
{
|
|
102
|
-
input: 'src/index.ts',
|
|
103
|
-
output: {
|
|
104
|
-
file: 'dist/index.d.ts',
|
|
105
|
-
format: 'esm'
|
|
106
|
-
},
|
|
107
|
-
external,
|
|
108
|
-
plugins: [dts()]
|
|
109
|
-
}
|
|
110
|
-
];
|