2.0.0 • Published 2 years ago

projclaculator v2.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

https://www.youtube.com/watch?v=2qfzW5PrtpU&t=35s

//@ 50:00 mins of above video link

cmd> mkdir proj1Ts cmd> cd proj1Ts

cmd> tsc --init some change in tsconfig file, manualy targest 2022 line 28 modile: NodeNext line 30 moduleResolution :"NodeNext"

cmd> touch index.js cmd> rm index2.js cmd> tsc index.js add npm init -y

#!/usr/bin/env node "bin":{ "asifcalc":"./index.js" }, npm publish

published successfyl https://www.npmjs.com/package/proj1tsnpm

also did exta work
chmod +x index.js npm link now ./index.js is executable asifcalc also executable

//
npm publish
https://www.npmjs.com/package/projclaculator
now 
by modifing we publish again
npx 

npm i install inquirer

npm i --save-dev @types/inquirer npm i -D @types/inquirer

index.ts file import inquirer from "inquirer"; add in package json file to remove error due to inquirer "type": "module",

import inquirer from "inquirer"

inquirer .prompt([]) .then(()=>{})

.catch(()=>{})

.prompt([

]) .then((result)=>{ console.log(result);

}) .catch((error)=>{ console.log(error);

})

npm publish working fine // npx projclaculator

2.0.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago