Skip to content

Commit

Permalink
feat: move to exports map in package json and upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaubrey committed Nov 23, 2023
1 parent 9cf2c33 commit 0b779b9
Show file tree
Hide file tree
Showing 5 changed files with 586 additions and 214 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"request": "launch",
"name": "Jest - current file",
"program": "${workspaceFolder}/node_modules/jest/bin/jest",
// "runtimeVersion": "18.13.0",
"runtimeVersion": "18.13.0",
"args": [
"${relativeFile}"
],
Expand Down
1 change: 0 additions & 1 deletion jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ const config = require('@repodog/jest-config');

module.exports = {
...config,
setupFilesAfterEnv: ['fetch-mocked/testSetup.mjs'],
};
52 changes: 30 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
"repository": "https://github.com/badbatch/getta",
"bugs": "https://github.com/badbatch/getta/issues",
"type": "module",
"main": "./dist/main/index.mjs",
"types": "./dist/types/index.d.ts",
"exports": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.cjs"
},
"publishConfig": {
"access": "public"
},
Expand All @@ -19,19 +22,20 @@
"clean:dist": "del-cli ./dist",
"commit": "commit",
"compile": "pnpm run /^compile:.*/",
"compile:main": "rollup -c ./rollup.config.cjs",
"compile:cjs": "MODULE_SYSTEM=cjs rollup -c ./rollup.config.cjs",
"compile:esm": "rollup -c ./rollup.config.cjs",
"compile:types": "tsc --project ./tsconfig.build.json",
"cut:changelog": "changelog",
"cut:post-version": "pnpm run build",
"lint": "eslint . --ext .ts,.cjs",
"repodog": "repodog",
"syncpack": "syncpack",
"syncpack": "syncpack format && syncpack list-mismatches && syncpack lint-semver-ranges",
"test": "node --require=suppress-experimental-warnings --experimental-vm-modules node_modules/jest/bin/jest.js",
"type-check": "tsc --noEmit",
"validate": "syncpack format && syncpack lint-semver-ranges && pnpm run build && pnpm run lint && pnpm run type-check && pnpm run test"
"validate": "pnpm run syncpack && pnpm run build && pnpm run lint && pnpm run type-check && pnpm run test"
},
"dependencies": {
"cacheability": "^4.0.9",
"cacheability": "^4.0.14",
"query-string": "^8.1.0",
"ts-md5": "^1.3.1"
},
Expand All @@ -44,33 +48,35 @@
"@babel/cli": "^7.21.5",
"@babel/core": "^7.21.8",
"@babel/eslint-parser": "^7.21.8",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-export-namespace-from": "^7.18.9",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-proposal-decorators": "^7.23.3",
"@babel/plugin-syntax-import-assertions": "^7.20.0",
"@babel/plugin-transform-class-properties": "^7.23.3",
"@babel/plugin-transform-export-namespace-from": "^7.23.4",
"@babel/plugin-transform-modules-commonjs": "^7.23.3",
"@babel/plugin-transform-runtime": "^7.21.4",
"@babel/preset-env": "^7.21.5",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.21.5",
"@babel/runtime": "^7.21.5",
"@cachemap/core": "^5.0.0",
"@cachemap/map": "^5.0.0",
"@cachemap/core": "^5.0.4",
"@cachemap/map": "^5.0.2",
"@commitlint/cli": "^17.6.3",
"@commitlint/config-conventional": "^17.6.3",
"@commitlint/prompt-cli": "^17.6.3",
"@jest/globals": "^29.5.0",
"@repodog/babel-config": "^1.1.7",
"@repodog/cli": "^1.1.9",
"@repodog/commitlint-config": "^1.1.5",
"@repodog/eslint-config": "^1.1.11",
"@repodog/eslint-config-jest": "^1.1.9",
"@repodog/jest-config": "^1.1.9",
"@repodog/babel-config": "^1.1.11",
"@repodog/cli": "^1.2.5",
"@repodog/commitlint-config": "^1.1.6",
"@repodog/eslint-config": "^1.1.17",
"@repodog/eslint-config-jest": "^1.1.10",
"@repodog/jest-config": "^1.1.11",
"@repodog/markdownlint-config": "^1.1.5",
"@repodog/prettier-config": "^1.1.5",
"@repodog/rollup-config": "^1.1.6",
"@repodog/syncpack-config": "^1.1.5",
"@repodog/ts-config": "^1.1.5",
"@repodog/rollup-config": "^1.1.8",
"@repodog/syncpack-config": "^1.2.2",
"@repodog/ts-config": "^1.1.6",
"@rollup/plugin-babel": "^6.0.3",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-image": "^3.0.2",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.2",
Expand All @@ -90,13 +96,15 @@
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-sort-class-members": "^1.18.0",
"eslint-plugin-sort-destructure-keys": "^1.5.0",
"eslint-plugin-sort-keys-fix": "^1.1.2",
"eslint-plugin-typescript-sort-keys": "^2.3.0",
"eslint-plugin-unicorn": "^46.0.1",
"fetch-mocked": "^0.0.7",
"fast-check": "^3.14.0",
"fetch-mocked": "^0.0.17",
"generate-changelog": "^1.8.0",
"husky": "^8.0.3",
"identity-obj-proxy": "^3.0.0",
Expand All @@ -113,7 +121,7 @@
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-sourcemaps": "^0.6.3",
"suppress-experimental-warnings": "^1.1.17",
"syncpack": "^9.8.6",
"syncpack": "^12.0.0-alpha.0",
"type-fest": "^3.10.0",
"typescript": "^5.0.3",
"zod": "^3.22.4"
Expand Down
Loading

0 comments on commit 0b779b9

Please sign in to comment.