Closed Methuselah96 closed 1 year ago
npm lifecycle scripts are confusing.
prepack is supposed to be used for building for deployment. prepublish is supposed to be used for linting/testing.
prepack
prepublish
However jsondiffpatch requires the package to be built before testing and there's no lifecycle script that runs after prepack to run tests.
So for now we'll just remove the prepublish script since testing and linting is already run in CI. Hopefully in the future we can run tests against the source files without needing to build first.
npm lifecycle scripts are confusing.
prepack
is supposed to be used for building for deployment.prepublish
is supposed to be used for linting/testing.However jsondiffpatch requires the package to be built before testing and there's no lifecycle script that runs after
prepack
to run tests.So for now we'll just remove the prepublish script since testing and linting is already run in CI. Hopefully in the future we can run tests against the source files without needing to build first.