{"_id":"@abraham/pkg-ok","_rev":"7-1fa28db300a864f329ec0ed197d35404","name":"@abraham/pkg-ok","dist-tags":{"latest":"3.0.0-next.2","next":"3.0.0-next.2"},"versions":{"3.0.0-next.0":{"name":"@abraham/pkg-ok","version":"3.0.0-next.0","description":"Checks package.json main and bin paths","exports":"./index.js","bin":{"pkg-ok":"bin.js"},"type":"module","scripts":{"test":"npm run jest && eslint . && node ./bin","jest":"node --experimental-vm-modules node_modules/jest/bin/jest.js","prepublishOnly":"npm test && node ./bin","prepare":"husky install"},"repository":{"type":"git","url":"git+https://github.com/abraham/pkg-ok.git"},"keywords":["package","main","bin","field","file","path","exist","test","crlf","lf","line ending"],"author":{"name":"typicode","email":"typicode@gmail.com"},"contributors":[{"name":"Abraham Williams","email":"hi@abrah.am"}],"license":"MIT","bugs":{"url":"https://github.com/abraham/pkg-ok/issues"},"homepage":"https://github.com/abraham/pkg-ok#readme","devDependencies":{"eslint":"^8.0.0","eslint-config-standard":"^17.0.0-1","eslint-plugin-import":"^2.0.0","eslint-plugin-jest":"^26.0.0","eslint-plugin-n":"^14.0.0","eslint-plugin-promise":"^6.0.0","husky":"^7.0.0","jest":"^27.0.0","mock-fs":"^5.0.0"},"dependencies":{"chalk":"^5.0.0","meow":"^10.0.0","normalize-newline":"^4.0.0"},"engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"husky":{"hooks":{"pre-commit":"npm test"}},"gitHead":"069f0c11a419d653d39c511efd3a7430f57f5438","_id":"@abraham/pkg-ok@3.0.0-next.0","_nodeVersion":"16.14.0","_npmVersion":"8.5.1","dist":{"integrity":"sha512-fZdFh3BJh5N0tIK9nJLsrQRVyiPblbDf6TcSTlqt52u0pOSzdeKZi2wPeSMIIRqP06nwfMPaxiVa9anSKcc1Ug==","shasum":"bf173f523697856eae2f24b586ade183cffefa19","tarball":"https://registry.npmjs.org/@abraham/pkg-ok/-/pkg-ok-3.0.0-next.0.tgz","fileCount":8,"unpackedSize":14679,"npm-signature":"-----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OiAI8="}]},"_npmUser":{"name":"abraham","email":"4braham@gmail.com"},"directories":{},"maintainers":[{"name":"abraham","email":"4braham@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pkg-ok_3.0.0-next.0_1645293496754_0.7389900984683178"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"3.0.0-next.1":{"name":"@abraham/pkg-ok","version":"3.0.0-next.1","description":"Checks package.json main and bin paths","exports":"./index.js","bin":{"pkg-ok":"bin.js"},"type":"module","scripts":{"test":"npm run jest && eslint . && node ./bin","jest":"node --experimental-vm-modules node_modules/jest/bin/jest.js","prepublishOnly":"npm test && node ./bin","prepare":"husky install"},"repository":{"type":"git","url":"git+https://github.com/abraham/pkg-ok.git"},"keywords":["package","main","bin","field","file","path","exist","test","crlf","lf","line ending"],"author":{"name":"typicode","email":"typicode@gmail.com"},"contributors":[{"name":"Abraham Williams","email":"hi@abrah.am"}],"license":"MIT","bugs":{"url":"https://github.com/abraham/pkg-ok/issues"},"homepage":"https://github.com/abraham/pkg-ok#readme","devDependencies":{"eslint":"^8.0.0","eslint-config-standard":"^17.0.0-1","eslint-plugin-import":"^2.0.0","eslint-plugin-jest":"^26.0.0","eslint-plugin-n":"^14.0.0","eslint-plugin-promise":"^6.0.0","husky":"^7.0.0","jest":"^27.0.0","mock-fs":"^5.0.0"},"dependencies":{"chalk":"^5.0.0","meow":"^10.0.0","normalize-newline":"^4.0.0"},"engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"husky":{"hooks":{"pre-commit":"npm test"}},"gitHead":"ede75343aaee3c341c00541f6b6fe8fbc166e39f","_id":"@abraham/pkg-ok@3.0.0-next.1","_nodeVersion":"16.14.0","_npmVersion":"8.5.1","dist":{"integrity":"sha512-tHZTqFy7B5JrVTP4GpXdTARvikHzokn7/N2XJg5gcleDvzvistRaQxe7FvqQNalWGMLg1FwF21WCA/P6mRFl2Q==","shasum":"2dc4d02338922147a8a568666d389cbf57edf6ee","tarball":"https://registry.npmjs.org/@abraham/pkg-ok/-/pkg-ok-3.0.0-next.1.tgz","fileCount":8,"unpackedSize":14696,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiETN5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr73g/+MBeMQqnYSTJS7uLlVFqnvSRaBl9iQBXhuFF0HuM0vyikDNpB\r\n9cWbvECjEh7h3b9oIPCoL+mgwWVNN9JKfxsEtvxumo0b9p6JT3NAlzXvNE8h\r\n/ZwrEpZGaGF+TWqytQkl5wn56AaHnQEvr44l4sHd5NT5TyvFRGYByNgV/HqH\r\nkYa8E64Z83P2WKaOiATWAVCieCpIddM2nH2Q+00llTmLoAEJtx9920Bt4o8l\r\ni41yUx3Xpz5hUOnBUKL/npn3gCGDz0K1eQklNMdzjayawrFmKHTamnjsr/DO\r\nUofALeZin1smys+WGpD7UH6bCuMxIrIpemLyNByzKPsm+hbec2MY7SvfwzCF\r\nyMHj3rLoxnNvvaei28k0JwG72LFN0uKcS0I61TxX5EZXMchK0TBU7n3KNEqI\r\nXW1tjiEyJnFpKGrq24txVRRhyeZrBc5M9oU6Gcu4/MhGL1nyRb7ggmeC8yop\r\nVWjgjZ7q9O66qwFflQB8z7mSOgkVRD7bKFyduZg5r84fYjmtXxn+pe+H+h4W\r\nLntLCjFeNRzFGUvEV/b6zZyMojfqVo45iX24QIU7IkVWha1OcgjdIwtGS49+\r\nd0oTqhhNI1EXBwSpY1oqiiGjQmIqPKZNgv7FLnmXqIlSARkt/g3+XBtK9lAN\r\nLHJu/m0k2BKxT1R54D8uOv95hcWedZARw7E=\r\n=j3Oh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGYxz3yVCznYQ2kLNE8PPtbU5ZPMfDv5KTsou9715jQeAiAzCdKIbZZ2Jbf44FXAUqWu5XgdHPx90fHaTr0h9BLhCA=="}]},"_npmUser":{"name":"abraham","email":"4braham@gmail.com"},"directories":{},"maintainers":[{"name":"abraham","email":"4braham@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pkg-ok_3.0.0-next.1_1645294457756_0.7920696902609456"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"3.0.0-next.2":{"name":"@abraham/pkg-ok","version":"3.0.0-next.2","description":"Checks package.json main and bin paths","exports":"./index.js","bin":{"pkg-ok":"bin.js"},"type":"module","scripts":{"test":"npm run build && npm run jest && node ./bin","jest":"node --experimental-vm-modules node_modules/jest/bin/jest.js","format":"prettier --write .","build":"tsc","lint":"prettier --check . && eslint . --ext .ts --ext .cjs --ext .mjs","prepublishOnly":"npm test && node ./bin","prepare":"husky install"},"repository":{"type":"git","url":"git+https://github.com/abraham/pkg-ok.git"},"keywords":["package","main","bin","field","file","path","exist","test","crlf","lf","line ending"],"author":{"name":"typicode","email":"typicode@gmail.com"},"contributors":[{"name":"Abraham Williams","email":"hi@abrah.am"}],"license":"MIT","bugs":{"url":"https://github.com/abraham/pkg-ok/issues"},"homepage":"https://github.com/abraham/pkg-ok#readme","devDependencies":{"@types/mock-fs":"^4.0.0","@types/node":"^12.20.0","@typescript-eslint/eslint-plugin":"^5.0.0","@typescript-eslint/parser":"^5.0.0","eslint":"^8.0.0","eslint-config-prettier":"^8.0.0","eslint-plugin-jest":"^26.0.0","eslint-plugin-n":"^14.0.0","husky":"^7.0.0","jest":"^27.0.0","mock-fs":"^5.0.0","prettier":"2.5.1","typescript":"^4.0.0"},"dependencies":{"chalk":"^5.0.0","meow":"^10.0.0","normalize-newline":"^4.0.0"},"engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"husky":{"hooks":{"pre-commit":"npm test"}},"types":"./index.d.ts","readme":"# pkg-ok [![Build status](https://github.com/abraham/pkg-ok/actions/workflows/index.yaml/badge.svg)](https://github.com/abraham/pkg-ok/actions/workflows/index.yaml) [![npm](https://img.shields.io/npm/v/@abraham/pkg-ok.svg)](https://www.npmjs.com/package/@abraham/pkg-ok)\n\n> `pkg-ok` checks paths and scripts defined in `package.json` before you publish 👌\n\n- Ensures paths defined in `main`, `bin`, `module`, `types`, `typings`, `es2015` and `browser` exist\n- Ensures `bin` scripts use cross-platform line endings\n\n_This is a modernized fork of [typicode/pkg-ok](https://github.com/typicode/pkg-ok)._\n\n## Usage\n\n```sh\nnpm install @abraham/pkg-ok --save-dev\n```\n\n```js\n// package.json\n{\n  \"main\": \"oops_this_file_doesnt_exist.js\",\n  \"scripts\": {\n    \"prepublishOnly\": \"... && pkg-ok\"\n  }\n}\n```\n\n```sh\nnpm publish\n# Error!\n# Since main file doesn't exist, publish is blocked\n```\n\n## Options\n\n`pkg-ok` can be configured to check additional `package.json` fields or bin files\n\n```\npkg-ok --field someField --bin script.sh\n```\n\n## API\n\n```js\nconst pkgDirectory = __dirname;\n\npkgOk(pkgDirectory, {\n  fields: ['someAdditonalField'],\n  bin: ['someAdditionalScript.sh'],\n});\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md","gitHead":"7dd01f3cbe54c82c77205d4bb128704ec228dae0","_id":"@abraham/pkg-ok@3.0.0-next.2","_nodeVersion":"16.14.0","_npmVersion":"8.5.1","dist":{"integrity":"sha512-7hYEEFRNS6SdfeKbhGnOYoDfdzBNuC/K56Ffi/kiyItV3eks8OHB+eybaC8lm2hEZ8PEC62wRTln+CqcoK0BQA==","shasum":"c542a3320d0ffa543736e1fccca141878f90a6a9","tarball":"https://registry.npmjs.org/@abraham/pkg-ok/-/pkg-ok-3.0.0-next.2.tgz","fileCount":12,"unpackedSize":14481,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiEnNDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrVwQ//ec+tVz9k8ibl1nM169fspBaNBAuRRrw5MLFzIzoAMKZ7XQZh\r\ny/oKx8z2KPFb5iCAVIhPqksTtRhcPAxlnYrlYKOh9xay5jzmaMWn6iFwkw1j\r\nIHLWqQzkrXpTBrXfL0hSxZRMsfj+raH88CduQTw4H2BY0jhlSvbU2DJfMSZI\r\nELew4f3geaGGkQ36Ct9jh/17rEJ24c3coqraOWAw46UbBa7NVZOtJMfd5qtr\r\nxxv8Fzx7978NQsSPYN4YPJX3YnHCJcKZclEXz3rvNfZsn9RxhGrmTZQqrA90\r\nysKPky2fVgjjmDbACi7g0PqIYsz6xJG/+hzNIcnFPvjopANLLS8+H6+3lvdI\r\nt9H2fwdi9qa1UCJy8yo1GqIAEUS7m275cULwIPS1tI/6kzByFJ2OyI3VX7cV\r\nOEuTsOLZrNT9Wx3xPyDmbcl5JWiZNToXamG3bR64sci53lgSmgE+wJ1Ca00L\r\nfswRnZzQU+s4Omfosx3xey/eX0XjAEJL20xQ79iJLxFn9qk0GCWVh32W0Ymd\r\nc9JJYwVItYLu29ed5sFjmTn5KuOxNVC3DjKyWllRO2XCUYILzSXMy2IJ7AQI\r\nFoQBlqGoJyeVQBmGARaOAl76xUkNYbj7tVBQu3N8XxXAL1n+ik5wwweFtkP5\r\nlhW/HSzyBr/v17asj/n1eATYUqFhIZ6htzc=\r\n=5+yd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFXXhs9f2z6DTOGU2JZK73/YsSxo1dw4TT2y+drUz9epAiEAocu3nRnozP6oYdydyJpZ0KgfcFbsbAYfFd0C0u5uOZE="}]},"_npmUser":{"name":"abraham","email":"4braham@gmail.com"},"directories":{},"maintainers":[{"name":"abraham","email":"4braham@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pkg-ok_3.0.0-next.2_1645376323446_0.031869554940161526"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"time":{"created":"2022-02-19T17:58:16.677Z","3.0.0-next.0":"2022-02-19T17:58:16.926Z","modified":"2022-04-04T11:01:38.726Z","3.0.0-next.1":"2022-02-19T18:14:17.884Z","3.0.0-next.2":"2022-02-20T16:58:43.634Z"},"maintainers":[{"name":"abraham","email":"4braham@gmail.com"}],"description":"Checks package.json main and bin paths","homepage":"https://github.com/abraham/pkg-ok#readme","keywords":["package","main","bin","field","file","path","exist","test","crlf","lf","line ending"],"repository":{"type":"git","url":"git+https://github.com/abraham/pkg-ok.git"},"contributors":[{"name":"Abraham Williams","email":"hi@abrah.am"}],"author":{"name":"typicode","email":"typicode@gmail.com"},"bugs":{"url":"https://github.com/abraham/pkg-ok/issues"},"license":"MIT","readme":"# pkg-ok [![Build status](https://github.com/abraham/pkg-ok/actions/workflows/index.yaml/badge.svg)](https://github.com/abraham/pkg-ok/actions/workflows/index.yaml) [![npm](https://img.shields.io/npm/v/@abraham/pkg-ok.svg)](https://www.npmjs.com/package/@abraham/pkg-ok)\n\n> `pkg-ok` checks paths and scripts defined in `package.json` before you publish 👌\n\n* Ensures paths defined in `main`, `bin`, `module`, `types`, `typings`, `es2015` and `browser` exist\n* Ensures `bin` scripts use cross-platform line endings\n\n_This is a modernized fork of [typicode/pkg-ok](https://github.com/typicode/pkg-ok)._\n\n## Usage\n\n```sh\nnpm install @abraham/pkg-ok --save-dev\n```\n\n```js\n// package.json\n{\n  \"main\": \"oops_this_file_doesnt_exist.js\",\n  \"scripts\": {\n    \"prepublishOnly\": \"... && pkg-ok\"\n  }\n}\n```\n\n```sh\nnpm publish\n# Error!\n# Since main file doesn't exist, publish is blocked\n```\n\n## Options\n\n`pkg-ok` can be configured to check additional `package.json` fields or bin files\n\n```\npkg-ok --field someField --bin script.sh\n```\n\n## API\n\n```js\nconst pkgDirectory = __dirname\n\npkgOk(pkgDirectory, {\n  fields: ['someAdditonalField'],\n  bin: ['someAdditionalScript.sh']\n})\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}