Last active
July 4, 2023 05:45
-
-
Save aggregate1166877/2ca0624d4923f7357611a0c56d2901c9 to your computer and use it in GitHub Desktop.
Revisions
-
aggregate1166877 revised this gist
Jul 4, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ First, do whatever bundling you need to do, example: ``` npm run build-stuff ``` Log into NPM: -
aggregate1166877 revised this gist
Jul 4, 2023 . No changes.There are no files selected for viewing
-
aggregate1166877 revised this gist
Jul 4, 2023 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,8 @@ First, do whatever bundling you need to do, example: ``` npm run build-prod ``` Log into NPM: ``` npm login -
aggregate1166877 created this gist
Feb 7, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,33 @@ Log into NPM: ``` npm login ``` Check what will be uploaded. Ensure nothing sensitive is included. ``` npm publish --dry-run ``` Publish the package: ``` npm publish ``` _Note: you can add `--access=public` for scoped libs._ To auto patch the version: ``` npm version patch npm publish ``` Alternatively: ``` npm unpublish <packagname>@x.x.x-readme // The specific version readme that you want to update npm publish ``` Further reading: * https://itnext.io/step-by-step-building-and-publishing-an-npm-typescript-package-44fe7164964c * https://snyk.io/blog/best-practices-create-modern-npm-package/