From 0bdd5d128e7c88320dbbfc7cb88fa4106302b8a5 Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Wed, 2 Dec 2020 15:48:46 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Ajout=20d'un=20script=20pour=20m?= =?UTF-8?q?ettre=20=C3=A0=20jour=20la=20version=20NPM=20du=20paquet=20syso?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mon-entreprise/package.json | 2 +- package.json | 3 ++- systeme-social/.yarnrc | 2 ++ systeme-social/package.json | 7 ++++--- 4 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 systeme-social/.yarnrc diff --git a/mon-entreprise/package.json b/mon-entreprise/package.json index 85e2812e0..a1c05c565 100644 --- a/mon-entreprise/package.json +++ b/mon-entreprise/package.json @@ -99,7 +99,7 @@ "reselect": "^4.0.0", "styled-components": "^5.1.0", "swr": "^0.1.16", - "systeme-social": "^1.0.0", + "systeme-social": "^0.1.0", "whatwg-fetch": "^3.0.0", "yaml": "^1.9.2" }, diff --git a/package.json b/package.json index 59593154b..4dfe8d45a 100644 --- a/package.json +++ b/package.json @@ -118,7 +118,8 @@ "test:type": "yarn workspace publicodes run tsc && yarn workspace mon-entreprise run tsc", "test:regressions": "jest", "clean": "yarn workspaces run clean", - "start": "yarn workspace publicodes build --watch & yarn workspace mon-entreprise start" + "start": "yarn workspace publicodes build --watch & yarn workspace mon-entreprise start", + "syso:up": "yarn workspace systeme-social run up" }, "workspaces": [ "publicodes", diff --git a/systeme-social/.yarnrc b/systeme-social/.yarnrc new file mode 100644 index 000000000..8094fc503 --- /dev/null +++ b/systeme-social/.yarnrc @@ -0,0 +1,2 @@ +version-tag-prefix syso-v +version-git-message "⬆ Mise à jour du paquet \"systeme-social\" vers %s" diff --git a/systeme-social/package.json b/systeme-social/package.json index 13157fb6b..121a54a43 100644 --- a/systeme-social/package.json +++ b/systeme-social/package.json @@ -1,6 +1,6 @@ { "name": "systeme-social", - "version": "1.0.0", + "version": "0.1.0", "description": "Les règles publicodes du système social français", "main": "./dist/index.js", "types": "./index.d.ts", @@ -16,8 +16,8 @@ "dist/index.js" ], "devDependencies": { - "yaml": "^1.10.0", - "publicodes": "^1.0.0-beta.4" + "publicodes": "^1.0.0-beta.4", + "yaml": "^1.10.0" }, "dependencies": {}, "peerDependencies": { @@ -26,6 +26,7 @@ "scripts": { "build": "node build.js", "prepare": "yarn run build", + "up": "yarn version --minor && echo \"ℹ N'oubliez pas de poussez le tag git\"", "test": "echo 1" } }