usxeditor
Version:
USX editor react component.
29 lines (19 loc) • 762 B
Plain Text
# How to build a new package
1. npm login
2. npm version patch
3. npm publish
#Troubleshooting.
If you get the following type of error, when running tests:
TSError: ⨯ Unable to compile TypeScript:
Left side of comma operator is unused and has no side effects.
(0, chai_1.expect)(wrapper.find(MyListItem)).to.have.length(3);
Then run : "npm run fix-ts-mocha" which does the following:
1. cd node_modules
2. cd ts-mocha
3. npm install --force
This install ts-mocha optional dependencies (tsconfig-paths), and fixes the error.
# Testing in another project before publishing.
1. cd to target project
(Install via file ref)
2. npm i usxeditor --legacy-peer-deps ../usxeditor
(other options are npm link, or npm pack).