Skip to content

Commit bd96425

Browse files
New output, correct typings property, adding eslint parser, removing module resolver
1 parent c0c2c67 commit bd96425

File tree

2 files changed

+36
-77
lines changed

2 files changed

+36
-77
lines changed

package-lock.json

Lines changed: 29 additions & 70 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,23 @@
1818
}
1919
],
2020
"main": "main.js",
21-
"module": "module.js",
21+
"module": "main.js",
2222
"browser": "browser.js",
23-
"types": "types.d.ts",
23+
"types": "index.ts",
2424
"files": [
2525
"index.ts",
2626
"main.js",
27-
"browser.js",
28-
"types/*.d.ts"
27+
"module.js",
28+
"browser.js"
2929
],
3030
"sideEffects": false,
3131
"scripts": {
3232
"prepublishOnly": "npm run build",
3333
"test": "BABEL_ENV=test jest --coverage",
34-
"build": "npm run build:browser && npm run build:main",
34+
"build": "npm run build:browser && npm run build:main && npm run build:module",
3535
"build:main": "babel --env-name main --out-file './main.js' './index.ts'",
3636
"build:browser": "babel --env-name browser --out-file './browser.js' './index.ts'",
37-
"lint": "eslint './index.ts'",
37+
"build:module": "babel --env-name module --out-file './module.js' './index.ts'", "lint": "eslint './index.ts'",
3838
"typecheck": "tsc --noEmit",
3939
"ci": "npm run typecheck && npm run lint && npm run test"
4040
},
@@ -46,12 +46,12 @@
4646
"@babel/preset-typescript": "^7.12.7",
4747
"@types/jest": "^26.0.15",
4848
"@types/node": "^14.14.10",
49+
"@typescript-eslint/parser": "^4.8.2",
4950
"babel-jest": "^26.6.3",
5051
"babel-plugin-annotate-console-log": "^1.0.0",
5152
"babel-preset-minify": "^0.5.1",
5253
"core-js": "^3.8.0",
5354
"eslint": "^7.14.0",
54-
"eslint-import-resolver-babel-module": "^5.2.0",
5555
"eslint-plugin-babel": "^5.3.1",
5656
"eslint-plugin-jest": "^24.1.3",
5757
"eslint-plugin-promise": "^4.2.1",

0 commit comments

Comments
 (0)