From 25d087e528b6090ea768a9cbde955af0b9a11564 Mon Sep 17 00:00:00 2001 From: Regev Brody Date: Wed, 14 Jul 2021 20:40:24 +0300 Subject: [PATCH] fix #110 - fix windows support (#111) --- .github/workflows/ci.yml | 2 +- package.json | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 24e99a1..ea8577e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, macos-latest] + os: [ubuntu-latest, macos-latest, windows-latest] node-version: [6.x, 8.x, 10.x, 12.x, 14.x, 16.x] steps: diff --git a/package.json b/package.json index 88b6478..f640b8c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "squiss-ts", - "version": "4.2.0", + "version": "4.2.1", "description": "High-volume SQS poller", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -8,14 +8,14 @@ "node": "^6 || ^8 || ^10 || ^12 || ^14 || ^16" }, "scripts": { - "postinstall": "node -e 'const semver = require(\"semver\");process.exit(semver.lt(process.version, \"10.16.0\"));' || npm install --no-save iltorb@2.4.3", + "postinstall": "node -e \"const semver = require('semver');process.exit(semver.lt(process.version, '10.16.0'));\" || npm install --no-save iltorb@2.4.3", "clean": "rm -rf node_modules build coverage dist", - "build": "npm run lint && npm run buildDist", - "buildDist": "rm -rf dist/* && ./node_modules/.bin/tsc", + "build": "npm run lint && npm run compile", + "compile": "tsc", "test": "npm run lint && npm run mocha", - "mocha": "node --preserve-symlinks -r source-map-support/register node_modules/mocha/bin/_mocha --opts src/test/mocha.opts", - "cover": "rm -rf coverage && nyc --reporter=lcov --reporter=text-summary npm run test", - "lint": "tslint -c tslint.json 'src/**/*.ts' 'test/**/*.ts'" + "mocha": "_mocha --opts src/test/mocha.opts", + "cover": "nyc --reporter=lcov --reporter=text-summary npm run test", + "lint": "tslint -c tslint.json \"src/**/*.ts\" \"test/**/*.ts\"" }, "repository": { "type": "git",