File tree Expand file tree Collapse file tree 5 files changed +20
-20
lines changed Expand file tree Collapse file tree 5 files changed +20
-20
lines changed Original file line number Diff line number Diff line change
1
+ * .tsbuildinfo
2
+ lib
1
3
node_modules
Original file line number Diff line number Diff line change 17
17
},
18
18
"license" : " MIT" ,
19
19
"author" : " yeikos" ,
20
- "main" : " lib/src/ index.js" ,
20
+ "main" : " lib/index.js" ,
21
21
"files" : [
22
- " lib/src/ index.d.ts"
22
+ " lib/index.d.ts"
23
23
],
24
24
"scripts" : {
25
- "build" : " npm run build:ts && npm run build:wp" ,
26
- "build:ts" : " ./node_modules/.bin/tsc -p tsconfig.json" ,
27
- "build:wp" : " ./node_modules/.bin/webpack --config webpack.config.js" ,
28
- "dev" : " ./node_modules/.bin/concurrently --kill-others \" npm run dev:ts\" \" npm run dev:wp\" " ,
29
- "dev:ts" : " ./node_modules/.bin/tsc -p tsconfig.json -w" ,
30
- "dev:wp" : " ./node_modules/.bin/webpack --config webpack.config.js -w" ,
25
+ "build" : " tsc --build tsconfig.build.json" ,
26
+ "dev" : " tsc --build tsconfig.build.json -w" ,
31
27
"format" : " prettier --cache -w ." ,
32
28
"test" : " vitest run"
33
29
},
34
30
"devDependencies" : {
35
- "@types/node" : " ^14.14.7" ,
36
- "concurrently" : " ^5.3.0" ,
37
31
"prettier" : " ^2.8.8" ,
38
32
"prettier-plugin-packagejson" : " ^2.4.3" ,
39
33
"prettier-plugin-sort-json" : " ^1.0.0" ,
40
34
"typescript" : " ^5.0.4" ,
41
- "vitest" : " ^0.31.0" ,
42
- "webpack" : " ^5.4.0" ,
43
- "webpack-cli" : " ^4.2.0"
35
+ "vitest" : " ^0.31.0"
44
36
}
45
37
}
Original file line number Diff line number Diff line change 1
- module . exports = exports = main ;
2
-
3
1
export default main ;
4
2
5
3
export function main ( clone : boolean , ...items : any [ ] ) : any ;
@@ -35,7 +33,7 @@ export function clone<T>(input: T): T {
35
33
} else if ( isPlainObject ( input ) ) {
36
34
const output : any = { } ;
37
35
38
- for ( let index in input ) output [ index ] = clone ( input [ index ] ) ;
36
+ for ( let index in input ) output [ index ] = clone ( ( input as any ) [ index ] ) ;
39
37
40
38
return output as any ;
41
39
} else {
Original file line number Diff line number Diff line change
1
+ {
2
+ "compilerOptions" : {
3
+ "rootDir" : " src" ,
4
+ "declaration" : true ,
5
+ "outDir" : " ./lib" ,
6
+ "incremental" : true ,
7
+ "typeRoots" : []
8
+ },
9
+ "extends" : " ./tsconfig.json" ,
10
+ "include" : [" src" ]
11
+ }
Original file line number Diff line number Diff line change 3
3
"target" : " es5" ,
4
4
"lib" : [" es2015" , " es2016" ],
5
5
"module" : " commonjs" ,
6
- "declaration" : true ,
7
- "outDir" : " ./lib" ,
8
6
"strict" : true
9
- },
10
- "include" : [" src/index.ts" , " test/index.ts" ]
7
+ }
11
8
}
You can’t perform that action at this time.
0 commit comments