Skip to content

Commit

Permalink
Add types field for newer TS versions
Browse files Browse the repository at this point in the history
Fixes #56 #57 #58 #60
  • Loading branch information
mhart committed Feb 12, 2024
1 parent 03f9802 commit 31838ea
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
}
}
21 changes: 12 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"description": "A compact AWS client for modern JS environments",
"author": "Michael Hart <[email protected]> (https://github.com/mhart)",
"license": "MIT",
"repository": "github:mhart/aws4fetch",
"repository": {
"type": "git",
"url": "git+https://github.com/mhart/aws4fetch.git"
},
"main": "dist/aws4fetch.cjs.js",
"module": "dist/aws4fetch.esm.js",
"browser": "dist/aws4fetch.umd.js",
Expand All @@ -14,7 +17,8 @@
"worker": "./dist/aws4fetch.esm.js",
"browser": "./dist/aws4fetch.umd.js",
"require": "./dist/aws4fetch.cjs.js",
"default": "./dist/aws4fetch.umd.js"
"default": "./dist/aws4fetch.umd.js",
"types": "./dist/main.d.ts"
}
},
"types": "dist/main.d.ts",
Expand All @@ -32,15 +36,14 @@
"integration": "node test/integration.js"
},
"devDependencies": {
"eslint": "^8.24.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint": "^8.56.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.0.1",
"eslint-plugin-standard": "^5.0.0",
"puppeteer": "^18.0.5",
"eslint-plugin-promise": "^6.1.1",
"puppeteer": "^22.0.0",
"rollup": "^2.79.1",
"rollup-plugin-cleanup": "^3.2.1",
"typescript": "^4.8.4"
"typescript": "^4.9.5"
}
}
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"compilerOptions": {
"target": "ES2016",
"moduleResolution": "node",
"rootDir": "src",
"outDir": "dist",
"allowJs": true,
"noEmit": true,
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"noUnusedLocals": true
"noUnusedLocals": true,
},
"include": ["src/**/*"]
}

0 comments on commit 31838ea

Please sign in to comment.