how to create package
-
npm init
-- will init package.json - npm pack /???
-
npm install typescript -g
-- global installation for TS -
npm i -D react @types/react typescript
-- add dev dependency for TS and React -
tsc --init
-- init tsconfig.json -
tsc -p .
-- will build specified targets in current path.
-
npm publish
-- will publish updates