@fukaraadam-workspace/basic-package
v0.1.3
Published
Simplest package
Downloads
9
Readme
Simplest Package
Just to show the simplest possible package. Followed this tutorial.
Local Usage
You can run npm link
from this subdirectory to put this package into your global npm modules (revertable it with npm unlink @fukaraadam-workspace/basic-package
). Then, you can use it in other projects with npm link @fukaraadam-workspace/basic-package
command (revertable by removing node_modules) and following code:
const helloNpm = require('@fukaraadam-workspace/basic-package');
console.log(helloNpm());
or, above code can be directly used in root directory of this monorepo with node ./basic-script.js
command (without npm link).
Publishing
npm login
(if not logged in)npm publish
for simple packages.npm publish --access public
for scoped packages like this one.