*Switch to commonjs

This commit is contained in:
Derrick Hammer 2022-12-15 06:57:55 -05:00
parent a3434a77f7
commit cc29396abb
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
2 changed files with 47 additions and 48 deletions

View File

@ -1,6 +1,7 @@
{
"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",
@ -10,9 +11,7 @@
"email": "sindresorhus@gmail.com",
"url": "https://sindresorhus.com"
},
"type": "module",
"exports": "./index.js",
"types": "./index.d.ts",
"type": "commonjs",
"engines": {
"node": ">=14.16"
},

View File

@ -2,7 +2,7 @@
"compilerOptions": {
"declaration": true,
"strict": true,
"module": "esnext",
"module": "commonjs",
"target": "esnext",
"esModuleInterop": true,
"sourceMap": false,