From 039a53a8c640aa513059df9e1459f3b824545c5a Mon Sep 17 00:00:00 2001 From: Eric Hole Date: Mon, 20 May 2024 23:14:42 -0700 Subject: [PATCH] Try node 20.13; add npm bin to path --- .circleci/config.yml | 6 ++++-- package.json | 12 ++++++------ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d31e2c3..4fac622 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,7 +4,7 @@ jobs: install: working_directory: ~/angular-google-charts docker: - - image: node:16.10 + - image: node:20.13 steps: - checkout - restore_cache: @@ -21,12 +21,14 @@ jobs: test: working_directory: ~/angular-google-charts docker: - - image: node:16.10 + - image: node:20.13 steps: - checkout - restore_cache: keys: - node-{{ checksum "package-lock.json" }} + # - run: echo 'export PATH=$(npm bin):$PATH' >> $BASH_ENV + # - run: echo $PATH - run: name: Run tests command: npm run test -- --ci --coverage --reporters default --reporters jest-junit diff --git a/package.json b/package.json index 2bdf2c9..86f3906 100644 --- a/package.json +++ b/package.json @@ -4,12 +4,12 @@ "version": "0.0.0", "private": false, "scripts": { - "ng": "ng", - "start": "ng serve playground -o", - "build": "ng build angular-google-charts --configuration production", - "build:watch": "ng build angular-google-charts --configuration production --watch", - "test": "ng test angular-google-charts --coverage", - "lint": "ng lint playground", + "ng": "npx run ng", + "start": "npx run ng serve playground -o", + "build": "npx run ng build angular-google-charts --configuration production", + "build:watch": "npx run ng build angular-google-charts --configuration production --watch", + "test": "npx run ng test angular-google-charts --coverage", + "lint": "npx run ng lint playground", "release": "standard-version" }, "workspaces": [