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:
npm link does not appear to install the final package (ie. doesn't respect things like files)
semantic release updates the package version before build is run in the prepublish step
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
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:
npm link
does not appear to install the final package (ie. doesn't respect things like files)semantic release
updates the package version beforebuild
is run in theprepublish
stepHow should this be manually tested?
Run
npm pack
to verify that thepackage.json
is included in thedist
directory and thennpm install <policyRepoPath>/ snyk-policy-0.0.0.tgz
before testing in Registry