Skip to content

Commit

Permalink
chore: update config
Browse files Browse the repository at this point in the history
  • Loading branch information
PopGoesTheWza committed Dec 27, 2023
1 parent 284bfe7 commit 99583c6
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
- 18
- 16
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
yarn.lock
dist
50 changes: 40 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,24 @@
"url": "https://sindresorhus.com"
},
"type": "module",
"exports": "./index.js",
"exports": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"sideEffects": false,
"engines": {
"node": ">=16"
},
"scripts": {
"test": "xo && ava && tsc",
"bench": "node benchmark.js"
"build": "del-cli dist && tsc",
"test": "xo && ava && del-cli dist && tsc && tsd",
"bench": "node --import=tsx/esm bench.ts",
"prepublishOnly": "del-cli dist && tsc"
},
"files": [
"index.js",
"index.d.ts"
"dist"
],
"types": "dist/index.d.ts",
"keywords": [
"object",
"prop",
Expand All @@ -37,13 +43,37 @@
"dotty"
],
"dependencies": {
"type-fest": "^3.8.0"
"type-fest": "^4.8.3"
},
"devDependencies": {
"ava": "^5.2.0",
"@sindresorhus/tsconfig": "^5.0.0",
"@types/benchmark": "^2.1.5",
"ava": "^6.0.1",
"benchmark": "^2.1.4",
"expect-type": "^0.15.0",
"typescript": "^5.0.4",
"xo": "^0.54.1"
"del-cli": "^5.1.0",
"expect-type": "^0.17.3",
"tsd": "^0.30.1",
"tsx": "^4.7.0",
"typescript": "^5.3.3",
"xo": "^0.56.0"
},
"ava": {
"workerThreads": false,
"files": [
"test/**"
],
"extensions": {
"ts": "module"
},
"nodeArguments": [
"--import=tsx/esm"
]
},
"xo": {
"rules": {
"@typescript-eslint/naming-convention": "warn",
"@typescript-eslint/prefer-nullish-coalescing": "warn",
"@typescript-eslint/no-dynamic-delete": "warn"
}
}
}
8 changes: 5 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"extends": "@sindresorhus/tsconfig",
"compilerOptions": {
"lib": [
"es2021"
],
"strict": true,
"noEmit": true
"noFallthroughCasesInSwitch": false,
"outDir": "dist"
},
"include": [
"*.ts"
]
"source"
, "source/index.js" ]
}

0 comments on commit 99583c6

Please sign in to comment.