refactor: remove gen-esm-wrapper dependency (#6884)

This commit is contained in:
Lin
2021-10-26 18:12:16 +02:00
committed by GitHub
parent 76856b967a
commit b27888455f
4 changed files with 146 additions and 252 deletions

View File

@@ -3,19 +3,11 @@
"version": "13.3.0-dev",
"description": "A powerful library for interacting with the Discord API",
"main": "./src/index.js",
"module": "./src/index.mjs",
"types": "./typings/index.d.ts",
"files": [
"src",
"typings"
],
"exports": {
"./*": "./*",
".": {
"require": "./src/index.js",
"import": "./src/index.mjs"
}
},
"scripts": {
"test": "npm run lint && npm run docs:test && npm run lint:typings",
"test:typescript": "tsc",
@@ -25,7 +17,7 @@
"lint:fix": "eslint src --fix",
"lint:typings": "tslint typings/index.d.ts",
"prettier": "prettier --write src/**/*.js typings/**/*.ts",
"prepublishOnly": "npm run test && gen-esm-wrapper ./src/index.js ./src/index.mjs",
"prepublishOnly": "npm run test",
"prepare": "is-ci || husky install",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
},
@@ -71,7 +63,6 @@
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-prettier": "^4.0.0",
"gen-esm-wrapper": "^1.1.3",
"husky": "^7.0.2",
"is-ci": "^3.0.0",
"jest": "^27.2.4",