Skip to content

Commit

Permalink
fix: mark package as side effect free & add ESM exports metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed May 19, 2021
1 parent 3e66ebe commit f200849
Show file tree
Hide file tree
Showing 3 changed files with 241 additions and 247 deletions.
39 changes: 22 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@
"author": "@skyra",
"license": "MIT",
"main": "dist/index.js",
"module": "dist/index.es.js",
"module": "dist/index.mjs",
"browser": "dist/index.umd.js",
"unpkg": "dist/index.umd.js",
"types": "dist/index.d.ts",
"exports": {
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"sideEffects": false,
"homepage": "https://skyra-project.github.io/char",
"private": false,
"files": [
Expand All @@ -30,31 +35,31 @@
"prepare": "husky install .github/husky"
},
"devDependencies": {
"@commitlint/cli": "^12.1.1",
"@commitlint/config-conventional": "^12.1.1",
"@sapphire/eslint-config": "^3.1.1",
"@sapphire/prettier-config": "^1.1.0",
"@sapphire/ts-config": "^2.2.0",
"@types/jest": "^26.0.22",
"@types/node": "^14.14.41",
"@typescript-eslint/eslint-plugin": "^4.21.0",
"@typescript-eslint/parser": "^4.22.0",
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"@sapphire/eslint-config": "^3.1.2",
"@sapphire/prettier-config": "^1.1.1",
"@sapphire/ts-config": "^2.2.1",
"@types/jest": "^26.0.23",
"@types/node": "^15.3.1",
"@typescript-eslint/eslint-plugin": "^4.24.0",
"@typescript-eslint/parser": "^4.24.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^7.24.0",
"eslint-config-prettier": "^8.2.0",
"eslint": "^7.26.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"husky": "^6.0.0",
"jest": "^26.6.3",
"jest-circus": "^26.6.3",
"lint-staged": "^11.0.0",
"prettier": "^2.2.1",
"prettier": "^2.3.0",
"pretty-quick": "^3.1.0",
"rollup": "^2.45.2",
"rollup": "^2.48.0",
"rollup-plugin-cleaner": "^1.0.0",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.30.0",
"standard-version": "^9.2.0",
"ts-jest": "^26.5.5",
"standard-version": "^9.3.0",
"ts-jest": "^26.5.6",
"ts-node": "^9.1.1",
"typedoc": "^0.20.36",
"typescript": "^4.2.4"
Expand Down Expand Up @@ -104,7 +109,7 @@
"jest-environment-jsdom": "https://registry.yarnpkg.com/@favware/skip-dependency/-/skip-dependency-1.0.2.tgz",
"jest-jasmine2": "https://registry.yarnpkg.com/@favware/skip-dependency/-/skip-dependency-1.0.2.tgz",
"dot-prop": "^6.0.1",
"marked": "^2.0.1"
"marked": "^2.0.3"
},
"prettier": "@sapphire/prettier-config"
}
2 changes: 1 addition & 1 deletion rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default {
sourcemap: true
},
{
file: './dist/index.es.mjs',
file: './dist/index.mjs',
format: 'es',
exports: 'named',
sourcemap: true
Expand Down
Loading

0 comments on commit f200849

Please sign in to comment.