-
Open
modules/observable-store-extensions
and runnpm run build
ornpm run build:w
. -
Open
modules/observable-store
and runnpm run build
ornpm run build:w
. -
Run
npm run test
inmodules/observable-store
and ensure all tests pass. -
Open one of the samples and uncomment the lines in
tsconfig.json
for@codewithdan
(makes local testing easier). -
Open a sample project in
samples
to test it out. -
Run
npm publish --access public
in the root of themodules/observable-store
andmodules/observable-store-extensions
folders (enter the 2FA code for npm).
-
Open
modules/observable-store
and runnpm link
to setup linking to@codewithdan/observable-store
. Alternatively, you can uncomment the lines inmodules/observable-store-extensions/tsconfig.json
to work with it locally. -
Open
modules/observable-store-extensions
and runnpm link @codewithdan/observable-store
-
Open
modules/observable-store-extensions/tsconfig.json
and comment out thepaths
property -
Open
modules/observable-store-extensions
and runnpm run build
ornpm run build:w
. -
Copy the root
readme.md
file intomodules/observable-store
(need to update the build to automate this). -
Run
npm publish --access public
and enter the 2FA code for npm -
When done you can run
npm unlink @codewithdan/observable-store
inmodules/observable-store-extensions
-
Then run
npm unlink
inmodules/observable-store
-
IMPORTANT: Make sure that samples have
@codewithdan
sections intsconfig.json
commented out before pushing to github.
Delete dist/observable-store
and rebuild the extensions project. If using linking (see above) there shouldn't be a problem.