snyk / policy

Snyk policy parser and matching logic
Other
8 stars 8 forks source link

fix: adds the package.json to the dist folder of the published library #105

Closed gclapperton closed 1 year ago

gclapperton commented 1 year ago

What does this PR do?

Adds the package.json to the dist folder of the published library.

The library exports it's version and so needs to be able to inspect it's own package.json file. The new TypeScript compilation did not include it in the dist directory as expected

Note:

How should this be manually tested?

Run npm pack to verify that the package.json is included in the dist directory and then npm install <policyRepoPath>/ snyk-policy-0.0.0.tgz before testing in Registry

snyksec commented 1 year ago

:tada: This PR is included in version 2.0.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: