File tree 3 files changed +8
-7
lines changed
3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 6
6
"license" : " MIT" ,
7
7
"repository" : " github:github/webauthn-json" ,
8
8
"main" : " dist/index.js" ,
9
+ "module" : " dist/index.esm.js" ,
9
10
"umd" : " dist/webauthn-json.umd.js" ,
10
11
"types" : " dist/src/index.d.ts" ,
11
12
"dependencies" : {
31
32
"print-schemas" : " npx ts-node script/print-schemas.ts" ,
32
33
"lint" : " tslint --fix --project . && tslint --fix rollup.config.js" ,
33
34
"prepack" : " npm run clean && npm run build" ,
34
- "copy-flow" : " mkdir -p dist/ && rm -f dist/index.js.flow && cp src/index.js.flow dist/" ,
35
- "link-flow" : " mkdir -p dist/ && rm -f dist/index.js.flow && ln -s src/index.js.flow dist/"
35
+ "copy-flow" : " mkdir -p dist/ && rm -f dist/index.js.flow dist/index.esm.js.flow && cp src/index.js.flow dist/ && cp src/index.js.flow dist/index.esm.js.flow " ,
36
+ "link-flow" : " mkdir -p dist/ && rm -f dist/index.js.flow dist/index.esm.js.flow && ln -s src/index.js.flow dist/ && ln -s src/index.js.flow dist/index.esm.js.flow "
36
37
},
37
38
"keywords" : [
38
39
" webauthn" ,
Original file line number Diff line number Diff line change @@ -9,13 +9,13 @@ export default {
9
9
output : [
10
10
{
11
11
file : pkg . main ,
12
- format : "cjs" ,
12
+ format : "umd" ,
13
+ name : "webauthnJSON" ,
13
14
sourcemap : true ,
14
15
} ,
15
16
{
16
- file : pkg . umd ,
17
- format : "umd" ,
18
- name : "webauthnJSON" ,
17
+ file : pkg . module ,
18
+ format : "esm" ,
19
19
sourcemap : true ,
20
20
} ,
21
21
] ,
Original file line number Diff line number Diff line change 12
12
"outDir" : " dist" ,
13
13
"sourceMap" : true ,
14
14
"strictNullChecks" : true ,
15
- "target" : " es6 "
15
+ "target" : " es2017 "
16
16
},
17
17
"include" : [
18
18
" src/**/*" ,
You can’t perform that action at this time.
0 commit comments