From c1d65e3f7daba2b695ccf837d2aef19d586d1ca6 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Wed, 12 Jun 2019 17:53:23 +0700 Subject: [PATCH] Add version number in the CSS file Fixes #29 --- modern-normalize.css | 2 +- package.json | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modern-normalize.css b/modern-normalize.css index 3f645c8..89ade28 100644 --- a/modern-normalize.css +++ b/modern-normalize.css @@ -1,4 +1,4 @@ -/*! modern-normalize | MIT License | https://github.com/sindresorhus/modern-normalize */ +/*! modern-normalize v0.5.0 | MIT License | https://github.com/sindresorhus/modern-normalize */ /* Document ========================================================================== */ diff --git a/package.json b/package.json index 08047b4..5465776 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,8 @@ "node": ">=6" }, "scripts": { - "test": "stylelint modern-normalize.css" + "test": "stylelint modern-normalize.css", + "version": "replace-in-files --regex='v\\d+\\.\\d+\\.\\d+' --replacement=v$npm_package_version modern-normalize.css && git add ." }, "files": [ "modern-normalize.css" @@ -28,6 +29,7 @@ "style" ], "devDependencies": { + "replace-in-files-cli": "^0.1.0", "stylelint": "^9.3.0", "stylelint-config-xo": "^0.9.0" },