@jahia/vite-plugin 0.5.4 → 0.5.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jahia/vite-plugin",
3
- "version": "0.5.4",
3
+ "version": "0.5.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com:Jahia/javascript-modules.git",
package/pom.xml CHANGED
@@ -3,7 +3,7 @@
3
3
  <parent>
4
4
  <artifactId>javascript-modules</artifactId>
5
5
  <groupId>org.jahia.modules</groupId>
6
- <version>0.5.4</version>
6
+ <version>0.5.5</version>
7
7
  </parent>
8
8
  <artifactId>vite-plugin</artifactId>
9
9
  <name>Vite plugin for Jahia</name>
@@ -68,13 +68,13 @@
68
68
  <executions>
69
69
  <!-- Keep the package.json in sync with the maven version -->
70
70
  <execution>
71
- <id>bump-version</id>
71
+ <id>sync-version</id>
72
72
  <phase>process-resources</phase>
73
73
  <goals>
74
74
  <goal>yarn</goal>
75
75
  </goals>
76
76
  <configuration>
77
- <arguments>node sync-version.js ${project.version}</arguments>
77
+ <arguments>node ../.m2/sync-version.js ${project.version}</arguments>
78
78
  </configuration>
79
79
  </execution>
80
80
  </executions>
package/sync-version.js DELETED
@@ -1,16 +0,0 @@
1
- /**
2
- * @module
3
- *
4
- * Updates the package.json version, used during the maven release process.
5
- *
6
- * Usage: node sync-version.js 1.2.3
7
- *
8
- * @see {@link ./pom.xml}
9
- */
10
-
11
- import fs from "node:fs";
12
-
13
- const updated = fs
14
- .readFileSync("package.json", "utf8")
15
- .replace(/"version": ".+"/, `"version": ${JSON.stringify(process.argv[2])}`);
16
- fs.writeFileSync("package.json", updated);