0.0.20 • Published 2 years ago
fmus-mergemate-models v0.0.20
My TypeScript Package
This README outlines the steps to create and use a local NPM package written in TypeScript.
Setup and Initialization
Create and Initialize Package
- Create a new directory and initialize it with NPM.
mkdir my-package cd my-package npm init
- Create a new directory and initialize it with NPM.
TypeScript Setup
- Install TypeScript as a dev dependency and initialize the configuration.
npm install typescript --save-dev npx tsc --init
- Install TypeScript as a dev dependency and initialize the configuration.
Development
Write Your Code
- Create TypeScript
.ts
files in your project.
- Create TypeScript
Compile TypeScript npm run build
Preparing for NPM
Configure
package.json
- Specify the main entry point and other relevant information.
Publish your package to NPM: npm login npm publish
- Local Linking (Optional)
- Use
npm link
to test the package locally in another project.npm link
- In the consuming project:
npm link my-package
- Use
Publishing to NPM (Optional)
- Publish Your Package
- If desired, publish the package to the npm registry.
npm publish
- If desired, publish the package to the npm registry.
Remember to adjust the steps based on your specific requirements and package complexity.
0.0.20
2 years ago
0.0.10
2 years ago
0.0.11
2 years ago
0.0.12
2 years ago
0.0.13
2 years ago
0.0.14
2 years ago
0.0.15
2 years ago
0.0.9
2 years ago
0.0.16
2 years ago
0.0.8
2 years ago
0.0.17
2 years ago
0.0.18
2 years ago
0.0.19
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.3
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago