File tree 3 files changed +10
-18
lines changed
3 files changed +10
-18
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @idapgroup/js-object-utils" ,
3
- "version" : " 0.1.8 " ,
3
+ "version" : " 0.2.1 " ,
4
4
"description" : " Javascript functions for transform or mutate object" ,
5
5
"main" : " build/main/index.js" ,
6
+ "module" : " build/module/index.js" ,
6
7
"typings" : " build/main/index.d.ts" ,
7
- "exports" : {
8
- "." : {
9
- "types" : " ./build/main/index.d.ts" ,
10
- "es2015" : " ./build/lib/index.js" ,
11
- "import" : " ./build/lib/index.js"
12
- },
13
- "./package.json" : " ./package.json"
14
- },
15
8
"repository" : {
16
9
"type" : " git" ,
17
10
"url" : " https://github.com/idapgroup/js-object-utils.git"
20
13
"scripts" : {
21
14
"build" : " rm -rf build/ && run-p build:*" ,
22
15
"build:main" : " tsc -p tsconfig.json" ,
23
- "build:es-5 " : " tsc -p tsconfig-es5 .json" ,
16
+ "build:module " : " tsc -p tsconfig.module .json" ,
24
17
"fix" : " run-s fix:*" ,
25
18
"fix:prettier" : " prettier \" src/**/*.ts\" --write" ,
26
19
"fix:lint" : " eslint src --ext .ts --fix" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"compilerOptions" : {
3
3
"incremental" : true ,
4
- "target" : " ES2020 " ,
4
+ "target" : " ES2015 " ,
5
5
"outDir" : " build/main" ,
6
6
"rootDir" : " src" ,
7
- "moduleResolution" : " Node " ,
8
- "module" : " ES2020 " ,
7
+ "moduleResolution" : " node " ,
8
+ "module" : " CommonJS " ,
9
9
"declaration" : true ,
10
10
"inlineSourceMap" : true ,
11
11
"esModuleInterop" : true ,
19
19
"listEmittedFiles" : false ,
20
20
"listFiles" : false ,
21
21
"pretty" : true ,
22
- "lib" : [" ES2020 " , " dom" ],
22
+ "lib" : [" ES2015 " , " dom" ],
23
23
"types" : [],
24
24
"typeRoots" : [" node_modules/@types" , " src/types" ]
25
25
},
Original file line number Diff line number Diff line change 2
2
"extends" : " ./tsconfig.json" ,
3
3
"compilerOptions" : {
4
4
"baseUrl" : " ./" ,
5
- "target" : " es2015" ,
6
- "module" : " CommonJs" ,
7
- "moduleResolution" : " Node" ,
5
+ "target" : " ESNext" ,
6
+ "module" : " ESNext" ,
8
7
"lib" : [" ES2015" , " dom" ],
9
- "outDir" : " ./build/lib " ,
8
+ "outDir" : " ./build/module " ,
10
9
}
11
10
}
You can’t perform that action at this time.
0 commit comments