File tree Expand file tree Collapse file tree 4 files changed +41
-37
lines changed Expand file tree Collapse file tree 4 files changed +41
-37
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " rollup-plugin-javascript-confuser" ,
3
- "version" : " 1.0.1 " ,
3
+ "version" : " 1.0.2 " ,
4
4
"description" : " A Rollup Plugin for js-confuser" ,
5
- "main" : " dist/index.cjs.js" ,
6
- "module" : " dist/index.es.js" ,
7
- "types" : " dist/src" ,
5
+ "main" : " dist/index.js" ,
6
+ "module" : " dist/index.mjs" ,
7
+ "types" : " dist/index.d.ts" ,
8
+ "typesVersions" : {
9
+ "*" : {
10
+ "import" : [
11
+ " ./dist/index.d.mts"
12
+ ],
13
+ "require" : [
14
+ " ./dist/index.d.ts"
15
+ ]
16
+ }
17
+ },
18
+ "exports" : {
19
+ "." : {
20
+ "require" : {
21
+ "types" : " ./dist/index.d.ts" ,
22
+ "default" : " ./dist/index.js"
23
+ },
24
+ "import" : {
25
+ "types" : " ./dist/index.d.mts" ,
26
+ "default" : " ./dist/index.mjs"
27
+ }
28
+ }
29
+ },
8
30
"scripts" : {
9
- "prepublish" : " rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript --configImportAttributesKey with" ,
10
- "prebuild" : " rm -rf dist/*"
31
+ "prepublish" : " tsup --config tsup.config.ts"
11
32
},
12
33
"repository" : {
13
34
"type" : " git" ,
39
60
"js-confuser" : " ^2.0.0"
40
61
},
41
62
"devDependencies" : {
42
- "@rollup/plugin-node-resolve" : " ^16.0.1" ,
43
- "@rollup/plugin-typescript" : " ^12.1.4" ,
44
63
"@biomejs/biome" : " ^2.0.6" ,
45
64
"@types/node" : " ^22.16.0" ,
46
65
"rollup" : " ^4.44.2" ,
47
- "tslib " : " ^2.8.1 " ,
66
+ "tsup " : " ^8.5.0 " ,
48
67
"typescript" : " ^5.8.3"
49
68
},
50
69
"files" : [
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
{
2
- "include" : [" src/**/*.ts" , " rollup.config.ts " ],
2
+ "include" : [" src/**/*.ts" ],
3
3
"exclude" : [" node_modules" , " dist" ],
4
4
"compilerOptions" : {
5
5
"strict" : false ,
Original file line number Diff line number Diff line change
1
+ import { defineConfig } from "tsup" ;
2
+
3
+ export default defineConfig ( {
4
+ entry : [ "src/index.ts" ] ,
5
+ format : [ "cjs" , "esm" ] ,
6
+ dts : true ,
7
+ splitting : false ,
8
+ sourcemap : false ,
9
+ clean : true ,
10
+ minify : true ,
11
+ treeshake : true ,
12
+ } ) ;
You can’t perform that action at this time.
0 commit comments