plccheck 2.1.1 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +10 -0
  2. package/package.json +10 -7
package/README.md CHANGED
@@ -18,3 +18,13 @@ npx plccheck check ./path/to/project
18
18
  ## Publishing (maintainers)
19
19
 
20
20
  Initial publish requires npm auth once (to create the package entries in the registry). After that, releases use GitHub Actions + npm Trusted Publishing.
21
+
22
+ To release a new version:
23
+
24
+ ```bash
25
+ cd ../.. # repo root
26
+ npm version patch # or minor/major
27
+ git push --follow-tags
28
+ ```
29
+
30
+ `npm version` automatically syncs the version across all `plccheck-*` platform packages before it creates the git tag.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plccheck",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "description": "Siemens PLC language checker + LSP CLI (SCL/ST/LAD/FBD, etc.)",
5
5
  "license": "CC-BY-NC-4.0",
6
6
  "bin": {
@@ -10,13 +10,16 @@
10
10
  "bin/plccheck.js",
11
11
  "README.md"
12
12
  ],
13
+ "scripts": {
14
+ "version": "node ../scripts/plccheck-npm-version-hook.mjs"
15
+ },
13
16
  "optionalDependencies": {
14
- "@danielv123/plccheck-win-x64": "2.1.1",
15
- "@danielv123/plccheck-win-arm64": "2.1.1",
16
- "@danielv123/plccheck-linux-x64": "2.1.1",
17
- "@danielv123/plccheck-linux-arm64": "2.1.1",
18
- "@danielv123/plccheck-darwin-x64": "2.1.1",
19
- "@danielv123/plccheck-darwin-arm64": "2.1.1"
17
+ "@danielv123/plccheck-win-x64": "2.2.0",
18
+ "@danielv123/plccheck-win-arm64": "2.2.0",
19
+ "@danielv123/plccheck-linux-x64": "2.2.0",
20
+ "@danielv123/plccheck-linux-arm64": "2.2.0",
21
+ "@danielv123/plccheck-darwin-x64": "2.2.0",
22
+ "@danielv123/plccheck-darwin-arm64": "2.2.0"
20
23
  },
21
24
  "repository": {
22
25
  "type": "git",