Skip to content

Commit

Permalink
Add eslint; tweak package.json etc. (#2)
Browse files Browse the repository at this point in the history
* Export SourceOptions too

Pull Request: #1 (main)

* Add eslint; tweak package.json etc.
  • Loading branch information
dimikot authored Jan 12, 2024
1 parent 09b9780 commit ae04e39
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
src
__tests__
.npmrc
tsconfig.tsbuildinfo

node_modules
package-lock.json
Expand Down
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = {
testMatch: ["**/*.test.ts"],
clearMocks: true,
restoreMocks: true,
...(process.env.IN_JEST_PROJECT ? {} : { forceExit: true }),
transform: {
"\\.ts$": "ts-jest",
},
Expand Down
22 changes: 18 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
"pagination",
"merge iterables"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": "./dist/index.js",
"scripts": {
"build": "tsc",
"dev": "tsc --watch --preserveWatchOutput",
Expand All @@ -17,7 +18,8 @@
"docs": "rm -rf docs && typedoc --plugin typedoc-plugin-markdown --plugin typedoc-plugin-merge-modules && sed -i '' -E 's#packages/[^/]+/##g' $(find docs -type f -name '*.md')",
"clean": "rm -rf dist node_modules yarn.lock package-lock.json",
"copy-package-to-public-dir": "copy-package-to-public-dir.sh",
"deploy": "npm run build && npm test && npm publish --access=public"
"backport-package-from-public-dir": "backport-package-from-public-dir.sh",
"deploy": "npm run build && npm run lint && npm run test && npm publish --access=public"
},
"dependencies": {
"lodash": "^4.17.21",
Expand All @@ -27,10 +29,22 @@
"@types/jest": "^29.5.5",
"@types/lodash": "^4.14.175",
"@types/uniqid": "^4.1.3",
"@typescript-eslint/eslint-plugin": "^5.59.6",
"@typescript-eslint/parser": "^5.59.6",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-lodash": "^7.4.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-typescript-enum": "^2.1.0",
"eslint-plugin-typescript-sort-keys": "^2.3.0",
"eslint-plugin-unused-imports": "^2.0.0",
"eslint": "^8.40.0",
"ts-jest": "^29.1.1",
"typedoc": "^0.25.2",
"typedoc-plugin-markdown": "^3.16.0",
"typedoc-plugin-merge-modules": "^5.1.0",
"typedoc": "^0.25.2",
"typescript": "^5.2.2"
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion typedoc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"entryPoints": ["src"],
"exclude": ["src/internal/**", "src/__tests__/**", "**/node_modules/**"],
"exclude": ["**/internal/**", "**/__tests__/**", "**/node_modules/**"],
"entryPointStrategy": "expand",
"mergeModulesMergeMode": "project",
"sort": ["source-order"],
Expand Down

0 comments on commit ae04e39

Please sign in to comment.