{"id":19970202,"url":"https://github.com/webdeveric/validate-package-exports","last_synced_at":"2025-05-04T01:30:43.363Z","repository":{"id":229554076,"uuid":"723558631","full_name":"webdeveric/validate-package-exports","owner":"webdeveric","description":"Validate your package.json exports actually exist, have valid syntax, and can be imported or required without issues.","archived":false,"fork":false,"pushed_at":"2024-09-26T21:53:08.000Z","size":975,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-29T20:56:31.800Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/validate-package-exports","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webdeveric.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["webdeveric"]}},"created_at":"2023-11-26T03:28:29.000Z","updated_at":"2024-10-11T10:05:33.000Z","dependencies_parsed_at":"2024-11-13T06:03:18.631Z","dependency_job_id":null,"html_url":"https://github.com/webdeveric/validate-package-exports","commit_stats":null,"previous_names":["webdeveric/validate-package-exports"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fvalidate-package-exports","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fvalidate-package-exports/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fvalidate-package-exports/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fvalidate-package-exports/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webdeveric","download_url":"https://codeload.github.com/webdeveric/validate-package-exports/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252276955,"owners_count":21722447,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T02:53:31.030Z","updated_at":"2025-05-04T01:30:42.845Z","avatar_url":"https://github.com/webdeveric.png","language":"TypeScript","funding_links":["https://github.com/sponsors/webdeveric"],"categories":[],"sub_categories":[],"readme":"# validate-package-exports\n\n[![Node.js CI](https://github.com/webdeveric/validate-package-exports/actions/workflows/node.js.yml/badge.svg)](https://github.com/webdeveric/validate-package-exports/actions/workflows/node.js.yml)\n\nValidate your `package.json` exports actually exist, have valid syntax, and can be imported or required without issues.\n\n## Install\n\n```shell\npnpm add validate-package-exports -D\n```\n\n```shell\nnpm i validate-package-exports -D\n```\n\n```shell\nyarn add validate-package-exports -D\n```\n\n## Options\n\n| Flag | Description | Default value |\n| --- | --- | --- |\n| `--check` / `-s` | Check syntax of JS files | `false` |\n| `--verify` / `-v` | Verify a module can be imported or required | `false` |\n| `--concurrency` / `-c` | Concurrency | `availableParallelism()` |\n| `--bail` / `-b` | Stop after the first error | `process.env.CI === 'true'` |\n| `--no-bail` | Turn off `--bail` | `false` |\n| `--info` / `-i` | Show `info` messages.\u003cbr\u003eThe default behavior is to only show `error`. | `process.env.RUNNER_DEBUG === '1'` |\n| `--no-info` | Turn off `--info` | `false` |\n| `--json` / `-j` | Use JSON output | `false` |\n\n## Usage\n\n```sh\nvalidate-package-exports [FILE]... [options]\n```\n\n:information_source: If you do not provide a path to a `package.json`, it will try to find one in the current directory.\n\n### Package scripts examples\n\n```json\n{\n  \"scripts\": {\n    \"build\": \"YOUR-BUILD-SCRIPT\",\n    \"postbuild\": \"validate-package-exports --check --verify\"\n  }\n}\n```\n\nOR\n\n```json\n{\n  \"scripts\": {\n    \"prepublishOnly\": \"validate-package-exports --check --verify\"\n  }\n}\n```\n\n### Using `npx`\n\n```shell\nnpx --yes validate-package-exports ./path/to/package.json --check --verify\n```\n\n## Local development\n\n```\nfnm use\ncorepack enable\npnpm install\npnpm build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdeveric%2Fvalidate-package-exports","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebdeveric%2Fvalidate-package-exports","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdeveric%2Fvalidate-package-exports/lists"}