has-package-exports
Version:
Does the current node version have support for the "exports" field in package.json?
89 lines (88 loc) • 2.23 kB
JSON
{
"name": "has-package-exports",
"version": "1.3.0",
"description": "Does the current node version have support for the \"exports\" field in package.json?",
"main": "no",
"browser": {
"no": "./browser.js",
"yes": "./browser.js"
},
"exports": {
".": [
{
"browser": "./browser.js",
"default": "./yes.js"
},
"./yes.js"
],
"./conditional": [
{
"browser": "./browser.js",
"import": "./yes.js",
"require": "./yes.js",
"node": "./yes.js",
"default": "./no.js"
},
"./no.js"
],
"./pattern": "./pattern.js",
"./pattern-trailers": "./pattern-trailers.js"
},
"scripts": {
"prepublish": "!(type safe-publish-latest 2>&1 >/dev/null) || not-in-publish || npm run prepublishOnly",
"prepublishOnly": "safe-publish-latest",
"lint": "eslint --ext=js,mjs .",
"pretest": "npm run lint",
"test": "npm run tests-only",
"tests-only": "nyc tape 'test/**/*.js'",
"posttest": "aud --production || true",
"version": "auto-changelog && git add CHANGELOG.md",
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
},
"repository": {
"type": "git",
"url": "git+https://github.com/inspect-js/has-package-exports.git"
},
"keywords": [
"package.json",
"package",
"exports",
"field"
],
"author": "Jordan Harband <ljharb@gmail.com>",
"funding": {
"url": "https://github.com/sponsors/ljharb"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/inspect-js/has-package-exports/issues"
},
"homepage": "https://github.com/inspect-js/has-package-exports#readme",
"dependencies": {
"@ljharb/has-package-exports-patterns": "^0.0.2"
},
"devDependencies": {
"@ljharb/eslint-config": "^20.2.3",
"aud": "^2.0.0",
"auto-changelog": "^2.4.0",
"eslint": "=8.8.0",
"has-package-exports": "file:.",
"nyc": "^10.3.2",
"safe-publish-latest": "^2.0.0",
"semver": "^6.3.0",
"tape": "^5.5.2"
},
"greenkeeper": {
"ignore": [
"semver"
]
},
"auto-changelog": {
"output": "CHANGELOG.md",
"template": "keepachangelog",
"unreleased": false,
"commitLimit": false,
"backfillLimit": false,
"hideCredit": true
}
}