You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: nodejs/packaging.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ If you are looking for how we publish this packages, you are in the right place.
9
9
```javascript
10
10
{
11
11
"name":"@hq20/package-name",
12
-
"version":"0.0.1-beta",
12
+
"version":"v0.0.0",
13
13
"files": [],
14
14
"peerDependencies": {},
15
15
"devDependencies": {}
@@ -22,7 +22,7 @@ Above is an example of a package.json of a project. It should always contains at
22
22
The project name. In most projects we want to have an org scoped project. To do so we add `@hq20/` before the package name. It is not a rule. When starting a new package it must be decided if we use it or not, and when updating, it should never change.
23
23
24
24
### version
25
-
We follow the [semver](https://semver.org/) standard. Always starting with version **0.0.1-alpha.0**. Read the standard to understand better. The version needs to be changed in every release.
25
+
We follow the [semver](https://semver.org/) standard. Always starting with version **v0.0.0** (the actuall first release is `v0.0.1-alpha.0`, will be explained below). Read the standard to understand better. The version needs to be changed in every release.
26
26
27
27
### files
28
28
Files or folders to be included in the package. We write typescript almost everywhere, we always have tests and most times also scripts. These are all things that we don't want to include. We compile typescript to javascript and then release the js files (often in a `dist` folder). And we also include the types which we usually don't track on git.
@@ -49,7 +49,7 @@ To simplify this activity and not fall into mistakes, we use `npm version`. If y
49
49
50
50
| Current Version | npm Command | Next Version |
51
51
| ------------- |:-------------:| -----:|
52
-
|0.0.0 |`npm version prerelease --preid=alpha`| v0.0.1-alpha.0|
52
+
|v0.0.0 |`npm version prerelease --preid=alpha`| v0.0.1-alpha.0|
53
53
| v0.0.1-alpha.0 |`npm version prerelease --preid=alpha`| v0.0.1-alpha.1|
54
54
| v0.0.1-alpha.1 |`npm version prerelease --preid=alpha`| v0.0.1-alpha.2|
55
55
| v0.0.1-alpha.2 |`npm version prerelease --preid=beta`| v0.0.1-beta.0|
0 commit comments