@launch77/cli 1.7.0 → 1.7.2

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @launch77/cli
2
2
 
3
+ ## 1.7.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 4192097: Added validation step to plugin build to prevent deploying a differnet version of a library than plugin was built with
8
+ - Updated dependencies [4192097]
9
+ - @launch77/plugin-runtime@0.3.2
10
+
11
+ ## 1.7.1
12
+
13
+ ### Patch Changes
14
+
15
+ - 4faa93d: Added validation step to plugin build to prevent deploying a differnet version of a library than plugin was built with
16
+ - Updated dependencies [4faa93d]
17
+ - @launch77/plugin-runtime@0.3.1
18
+
3
19
  ## 1.7.0
4
20
 
5
21
  ### Minor Changes
@@ -15,6 +15,7 @@
15
15
  "plugin.json"
16
16
  ],
17
17
  "scripts": {
18
+ "prebuild": "node scripts/validate-plugin-json.js",
18
19
  "build": "tsup",
19
20
  "dev": "tsup --watch",
20
21
  "typecheck": "tsc --noEmit"
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env node
2
+ import { validatePluginConsistencyOrThrow } from '@launch77/plugin-runtime'
3
+
4
+ // Validate that library versions in package.json match plugin.json
5
+ // This runs before every build to catch version mismatches early
6
+ validatePluginConsistencyOrThrow(process.cwd()).catch((error) => {
7
+ process.exit(1)
8
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@launch77/cli",
3
- "version": "1.7.0",
3
+ "version": "1.7.2",
4
4
  "description": "Launch77 Platform CLI",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -15,6 +15,7 @@
15
15
  "plugin.json"
16
16
  ],
17
17
  "scripts": {
18
+ "prebuild": "node scripts/validate-plugin-json.js",
18
19
  "build": "tsup",
19
20
  "dev": "tsup --watch",
20
21
  "typecheck": "tsc --noEmit"
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env node
2
+ import { validatePluginConsistencyOrThrow } from '@launch77/plugin-runtime'
3
+
4
+ // Validate that library versions in package.json match plugin.json
5
+ // This runs before every build to catch version mismatches early
6
+ validatePluginConsistencyOrThrow(process.cwd()).catch((error) => {
7
+ process.exit(1)
8
+ })