From 213a705bf9eab09dd81d86e4db573c67dbae3fc6 Mon Sep 17 00:00:00 2001 From: Mikhail Khvoinitsky Date: Mon, 29 Mar 2021 02:26:07 +0300 Subject: [PATCH] Bump version to 1.1.0 and prepare package.json for publishing --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 82ec622..5575e71 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "csscolorparser-ts", - "version": "1.0.3", + "version": "1.1.0", "author": "Dean McNamee ", "contributors": [ "Mikhail Khvoinitsky ", @@ -24,7 +24,11 @@ "main": "dist/cjs/csscolorparser.js", "module": "dist/esm/csscolorparser.js", "types": "dist/csscolorparser.d.ts", + "files": [ + "dist" + ], "scripts": { + "release": "git diff-index --quiet HEAD && npm test && npm run build && npm publish", "build": "rm -r dist/* && tsc --outDir dist/esm --module ES6 && tsc --outDir dist/cjs --module CommonJS && mv dist/esm/csscolorparser.d.ts dist/ && rm dist/cjs/csscolorparser.d.ts", "test": "env TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' nyc --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter=html --reporter=lcov --reporter=text mocha" },