diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index c97e100..4f8ca22 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -13,30 +13,36 @@ jobs:
with:
node-version: 12.x
- - name: Use cached node_modules
+ - name: Cache node modules
uses: actions/cache@v2
+ env:
+ cache-name: cache-node-modules
with:
- path: node_modules
- key: nodeModules-${{ hashFiles('**/yarn.lock') }}
+ # npm cache files are stored in `~/.npm` on Linux/macOS
+ # https://docs.github.com/en/actions/advanced-guides/caching-dependencies-to-speed-up-workflows
+ path: ~/.npm
+ key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
- nodeModules-
+ ${{ runner.os }}-build-${{ env.cache-name }}-
+ ${{ runner.os }}-build-
+ ${{ runner.os }}-
- name: Install dependencies
- run: yarn install --frozen-lockfile
+ run: npm ci
env:
CI: true
- name: Lint
- run: yarn lint
+ run: npm lint
env:
CI: true
- name: Test
- run: yarn test --ci --coverage --maxWorkers=2
+ run: npm test --ci --coverage --maxWorkers=2
env:
CI: true
- name: Build
- run: yarn build
+ run: npm build
env:
CI: true
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index b44c192..c531043 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -4,6 +4,7 @@ on:
push:
branches:
- master
+ - main
jobs:
release_package:
@@ -11,11 +12,11 @@ jobs:
steps:
- uses: actions/checkout@v2
- - name: "yarn install"
- run: yarn install --frozen-lockfile
+ - name: "npm install"
+ run: npm ci
- - name: "yarn semantic-release"
- run: yarn semantic-release
+ - name: "npm semantic-release"
+ run: npm semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
diff --git a/README.md b/README.md
index b251959..f7ace11 100644
--- a/README.md
+++ b/README.md
@@ -71,7 +71,7 @@ This project was bootstrapped with [TSDX](https://github.com/jaredpalmer/tsdx).
Below is a list of commands you will probably find useful.
-#### `npm start` or `yarn start`
+#### `npm start`
Runs the project in development/watch mode. Your project will be rebuilt upon changes. TSDX has a special logger for you convenience. Error messages are pretty printed and formatted for compatibility VS Code's Problems tab.
@@ -79,14 +79,14 @@ Runs the project in development/watch mode. Your project will be rebuilt upon ch
Your library will be rebuilt if you make edits.
-#### `npm run build` or `yarn build`
+#### `npm run build`
Bundles the package to the `dist` folder.
The package is optimized and bundled with Rollup into multiple formats (CommonJS, UMD, and ES Module).
-#### `npm test` or `yarn test`
+#### `npm test`
Runs the test watcher (Jest) in an interactive mode.
By default, runs tests related to files changed since the last commit.
diff --git a/docs/classes/ShifterClient.html b/docs/classes/ShifterClient.html
index a69eb85..a406817 100644
--- a/docs/classes/ShifterClient.html
+++ b/docs/classes/ShifterClient.html
@@ -409,7 +409,7 @@
Methods
- createRequestConfig(config: AxiosRequestConfig)
+ createRequestConfig(config: any)
@@ -431,7 +431,7 @@ Methods
- Returns: AxiosRequestConfig
+ Returns: any
@@ -454,7 +454,7 @@
Methods
-
get(path: string, config: AxiosRequestConfig)
+
get(path: string, config: any)
@@ -507,7 +507,7 @@
Methods
-
post(path: string, body: Request, config: AxiosRequestConfig)
+
post(path: string, body: Request, config: any)
@@ -568,7 +568,7 @@
Methods
-
put(path: string, body: Request, config: AxiosRequestConfig)
+
put(path: string, body: Request, config: any)
@@ -629,7 +629,7 @@
Methods
-
delete(path: string, config: AxiosRequestConfig)
+
delete(path: string, config: any)
diff --git a/docs/graph/dependencies.svg b/docs/graph/dependencies.svg
index 9f33415..47ffb3e 100644
--- a/docs/graph/dependencies.svg
+++ b/docs/graph/dependencies.svg
@@ -1,24 +1,14 @@
-
-