Keep NPM module versions in sync with Maven module versions

master
Jens Pelzetter 2023-04-25 19:34:57 +02:00
parent 407a2276bf
commit d6d3f232bb
4 changed files with 23 additions and 3 deletions

View File

@ -93,6 +93,16 @@
<goal>npm</goal> <goal>npm</goal>
</goals> </goals>
</execution> </execution>
<!-- Sync Maven module version and NPM module version -->
<execution>
<id>npm version</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>version --allow-same-version=true ${project.version}</arguments>
</configuration>
</execution>
<execution> <execution>
<id>build</id> <id>build</id>
<goals> <goals>

View File

@ -1,12 +1,12 @@
{ {
"name": "@libreccm/ccm-core", "name": "@libreccm/ccm-core",
"version": "7.0.0", "version": "7.0.0-SNAPSHOT",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@libreccm/ccm-core", "name": "@libreccm/ccm-core",
"version": "7.0.0", "version": "7.0.0-SNAPSHOT",
"license": "LGPL-3.0-or-later", "license": "LGPL-3.0-or-later",
"dependencies": { "dependencies": {
"bootstrap": "^4.6.0", "bootstrap": "^4.6.0",

View File

@ -1,6 +1,6 @@
{ {
"name": "@libreccm/ccm-core", "name": "@libreccm/ccm-core",
"version": "7.0.0", "version": "7.0.0-SNAPSHOT",
"description": "JavaScript stuff for ccm-core", "description": "JavaScript stuff for ccm-core",
"main": "target/generated-resources/assets/@admin/ccm-admin.js", "main": "target/generated-resources/assets/@admin/ccm-admin.js",
"scripts": { "scripts": {

View File

@ -334,6 +334,16 @@
<goal>npm</goal> <goal>npm</goal>
</goals> </goals>
</execution> </execution>
<!-- Sync Maven module version and NPM module version -->
<execution>
<id>npm version</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>version --allow-same-version=true ${project.version}</arguments>
</configuration>
</execution>
<execution> <execution>
<id>build</id> <id>build</id>
<goals> <goals>