@vrshared/common
v1.0.2
Published
We are going to share our code in npm package, in our organization registery
Downloads
2
Readme
Common
We are going to share our code in npm package, in our organization registery
Navigate to https://www.npmjs.com/~btabe0914
- Create an organization --> lem-vr
- Add "name": "@lem-vr/common" to package json
- Add "version": "1.0.0"
- git init in common folder
- git add .
- git commit -m "message"
- npm login
- npm publish --access public or without --access public for private oganization
Packages
Install typescript config
tsc --init
Change the import flag to, it means when import any module we import from the following path
"main": "./build/index.js",
"types": "./build/index.d.ts",
"files": [ ---> What we want npm to inclide in final version of package
"build/**/*"
],