diff --git a/package.json b/package.json index a8c4730..4760d45 100644 --- a/package.json +++ b/package.json @@ -1,49 +1,48 @@ { - "name": "p-timeout", - "version": "6.0.0", - "description": "Timeout a promise after a specified amount of time", - "license": "MIT", - "repository": "sindresorhus/p-timeout", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "type": "module", - "exports": "./index.js", - "types": "./index.d.ts", - "engines": { - "node": ">=14.16" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "src/index.js", - "index.d.ts" - ], - "keywords": [ - "promise", - "timeout", - "error", - "invalidate", - "async", - "await", - "promises", - "time", - "out", - "cancel", - "bluebird" - ], - "devDependencies": { - "ava": "^4.3.1", - "delay": "^5.0.0", - "in-range": "^3.0.0", - "p-cancelable": "^4.0.1", - "prettier": "^2.8.1", - "time-span": "^5.1.0", - "tsd": "^0.22.0", - "xo": "^0.51.0" - } + "name": "p-timeout", + "version": "6.0.0", + "main": "dist/index.js", + "description": "Timeout a promise after a specified amount of time", + "license": "MIT", + "repository": "sindresorhus/p-timeout", + "funding": "https://github.com/sponsors/sindresorhus", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "https://sindresorhus.com" + }, + "type": "commonjs", + "engines": { + "node": ">=14.16" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "src/index.js", + "index.d.ts" + ], + "keywords": [ + "promise", + "timeout", + "error", + "invalidate", + "async", + "await", + "promises", + "time", + "out", + "cancel", + "bluebird" + ], + "devDependencies": { + "ava": "^4.3.1", + "delay": "^5.0.0", + "in-range": "^3.0.0", + "p-cancelable": "^4.0.1", + "prettier": "^2.8.1", + "time-span": "^5.1.0", + "tsd": "^0.22.0", + "xo": "^0.51.0" + } } diff --git a/tsconfig.json b/tsconfig.json index a4d5cd4..5bbcd3b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "declaration": true, "strict": true, - "module": "esnext", + "module": "commonjs", "target": "esnext", "esModuleInterop": true, "sourceMap": false,