UNPKG

resolve.imports

Version:
86 lines 2.48 kB
{ "name": "resolve.imports", "version": "2.0.3", "description": "resolve \"imports\" in package.json", "keywords": [ "esm", "imports", "esmodules", "fields", "modules", "resolution", "resolve" ], "homepage": "https://github.com/cyberuni/resolve.imports", "bugs": { "url": "https://github.com/cyberuni/resolve.imports/issues" }, "repository": { "type": "git", "url": "https://github.com/cyberuni/resolve.imports.git", "directory": "packages/resolve.imports" }, "license": "MIT", "author": { "name": "Homa Wong (unional)", "email": "homawong@gmail.com" }, "sideEffects": false, "type": "module", "exports": { ".": { "types": "./esm/index.d.ts", "import": "./esm/index.js", "default": "./cjs/index.js" }, "./package.json": "./package.json" }, "main": "./cjs/index.js", "types": "./esm/index.d.ts", "files": [ "cjs", "esm", "ts", "!**/testutils", "!cjs/**/*.d.ts", "!**/*.test.*", "!**/*.spec.*", "!**/*.unit.*", "!**/*.integrate.*", "!**/*.system.*", "!**/*.accept.*" ], "dependencies": { "pattern-key-compare": "^2.0.0" }, "devDependencies": { "@jest/globals": "^29.3.1", "@repobuddy/jest": "^2.3.0", "@size-limit/preset-small-lib": "^8.1.0", "@types/node": "^14", "cross-env": "^7.0.3", "depcheck": "^1.4.3", "jest": "^29.3.1", "jest-watch-suspend": "^1.1.2", "jest-watch-toggle-config-2": "^2.1.0", "jest-watch-typeahead": "^2.2.1", "ncp": "^2.0.0", "npm-run-all": "^4.1.5", "rimraf": "^3.0.2", "size-limit": "^8.1.0", "ts-jest": "^29.0.3", "typescript": "^4.9.4" }, "scripts": { "build": "run-p build:cjs build:esm", "build:esm": "tsc --project tsconfig.esm.json", "build:cjs": "tsc --project tsconfig.cjs.json && ncp package.cjs.json cjs/package.json", "clean": "rimraf cjs esm tslib *.tsbuildinfo", "coverage": "cross-env NODE_OPTIONS=--experimental-vm-modules NODE_OPTIONS=--experimental-import-meta-resolve NODE_NO_WARNINGS=1 jest --coverage", "depcheck": "depcheck", "size": "size-limit", "test": "cross-env NODE_OPTIONS=--experimental-vm-modules NODE_OPTIONS=--experimental-import-meta-resolve jest", "test:watch": "cross-env NODE_OPTIONS=--experimental-vm-modules NODE_OPTIONS=--experimental-import-meta-resolve jest --watch", "verify": "npm-run-all -p build -p test depcheck size" } }