0.0.20 • Published 1 year 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
1 year ago
0.0.10
1 year ago
0.0.11
1 year ago
0.0.12
1 year ago
0.0.13
1 year ago
0.0.14
1 year ago
0.0.15
1 year ago
0.0.9
1 year ago
0.0.16
1 year ago
0.0.8
1 year ago
0.0.17
1 year ago
0.0.18
1 year ago
0.0.19
1 year ago
0.0.7
1 year ago
0.0.6
1 year ago
0.0.3
1 year ago
0.0.5
1 year ago
0.0.4
1 year ago
0.0.2
1 year ago
0.0.1
1 year ago