Skip to content

Commit 22a6dfc

Browse files
authored
build: replace deprecated -ws npm flag (#209)
It prints a deprecation warning when used. There doesn't appear to be a short form anymore.
1 parent 353a812 commit 22a6dfc

File tree

3 files changed

+25
-25
lines changed

3 files changed

+25
-25
lines changed

.github/workflows/build.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ jobs:
6767
run: npm ci
6868
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
6969
- name: Build
70-
run: npm run build -ws
70+
run: npm run build --workspaces=true
7171
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
7272
- name: Tests
7373
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
74-
run: npm run test -ws
74+
run: npm run test --workspaces=true
7575

7676
test-build:
7777
runs-on: ${{ matrix.os }}
@@ -123,10 +123,10 @@ jobs:
123123
run: ${{ matrix.install-command }}
124124
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
125125
- name: Build workspaces
126-
run: npm run build -ws
126+
run: npm run build --workspaces=true
127127
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
128128
- name: Tests
129-
run: npm run test -ws
129+
run: npm run test --workspaces=true
130130
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
131131
env:
132132
# split tests across multiple machines
@@ -172,8 +172,8 @@ jobs:
172172
run: npm ci
173173
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
174174
- name: Build
175-
run: npm run build -ws
175+
run: npm run build --workspaces=true
176176
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
177177
- name: Publint
178178
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
179-
run: npm run publint -ws --if-present
179+
run: npm run publint --workspaces=true --if-present

.github/workflows/release-please.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
if: ${{ steps.release.outputs.releases_created }}
3636
- name: Build packages
3737
if: ${{ steps.release.outputs.releases_created }}
38-
run: npm run build -ws
38+
run: npm run build --workspaces=true
3939

4040
# Publishing packages in topological order, as defined in `package.json`.
4141
- run: npm publish packages/types/ --provenance --access=public
@@ -49,7 +49,7 @@ jobs:
4949
- run: npm publish packages/runtime-utils/ --provenance --access=public
5050
if: ${{ steps.release.outputs['packages/runtime-utils--release_created'] }}
5151
env:
52-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
52+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
5353
- run: npm publish packages/blobs/ --provenance --access=public
5454
if: ${{ steps.release.outputs['packages/blobs--release_created'] }}
5555
env:
@@ -81,8 +81,8 @@ jobs:
8181
- run: npm publish packages/vite-plugin/ --provenance --access=public
8282
if: ${{ steps.release.outputs['packages/vite-plugin--release_created'] }}
8383
env:
84-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
84+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
8585
- run: npm publish packages/otel/ --provenance --access=public
8686
if: ${{ steps.release.outputs['packages/otel--release_created'] }}
8787
env:
88-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
88+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,22 @@ npm install
1616
You can then build all the packages:
1717

1818
```sh
19-
npm run build -ws
19+
npm run build --workspaces=true
2020
```
2121

2222
## Packages
2323

24-
| Name | Description | Version |
25-
| ----------------------------------------------- | ----------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
26-
| 🗄️ [@netlify/blobs](packages/blobs) | TypeScript client for Netlify Blobs | [![npm version](https://img.shields.io/npm/v/@netlify/blobs.svg)](https://www.npmjs.com/package/@netlify/blobs) |
27-
| 💾 [@netlify/cache](packages/cache) | TypeScript utilities for interacting with the Netlify cache | [![npm version](https://img.shields.io/npm/v/@netlify/cache.svg)](https://www.npmjs.com/package/@netlify/cache) |
28-
| 🛠️ [@netlify/dev](packages/dev) | Emulation of the Netlify environment for local development | [![npm version](https://img.shields.io/npm/v/@netlify/dev.svg)](https://www.npmjs.com/package/@netlify/dev) |
29-
| 🔧 [@netlify/dev-utils](packages/dev-utils) | TypeScript utilities for the local emulation of the Netlify environment | [![npm version](https://img.shields.io/npm/v/@netlify/dev-utils.svg)](https://www.npmjs.com/package/@netlify/dev-utils) |
30-
|[@netlify/functions](packages/functions) | TypeScript utilities for interacting with Netlify Functions | [![npm version](https://img.shields.io/npm/v/@netlify/functions.svg)](https://www.npmjs.com/package/@netlify/functions) |
31-
| 🔍 [@netlify/otel](packages/otel) | TypeScript utilities to interact with Netlify's OpenTelemetry | [![npm version](https://img.shields.io/npm/v/@netlify/otel.svg)](https://www.npmjs.com/package/@netlify/otel) |
32-
| 🔄 [@netlify/redirects](packages/redirects) | TypeScript implementation of Netlify's rewrites and redirects engine | [![npm version](https://img.shields.io/npm/v/@netlify/redirects.svg)](https://www.npmjs.com/package/@netlify/redirects) |
33-
| 🏛️ [@netlify/runtime](packages/runtime) | Netlify compute runtime | [![npm version](https://img.shields.io/npm/v/@netlify/runtime.svg)](https://www.npmjs.com/package/@netlify/runtime) |
34-
| 🔨 [@netlify/runtime-utils](packages/runtime-utils) | Cross-environment utilities for the Netlify runtime | [![npm version](https://img.shields.io/npm/v/@netlify/runtime-utils.svg)](https://www.npmjs.com/package/@netlify/runtime-utils) |
35-
| 📁 [@netlify/static](packages/static) | TypeScript implementation of Netlify's static file serving logic | [![npm version](https://img.shields.io/npm/v/@netlify/static.svg)](https://www.npmjs.com/package/@netlify/static) |
36-
| 🔢 [@netlify/types](packages/types) | TypeScript types for Netlify platform primitives | [![npm version](https://img.shields.io/npm/v/@netlify/types.svg)](https://www.npmjs.com/package/@netlify/types) |
37-
| 🔌 [@netlify/vite-plugin](packages/vite-plugin) | Vite plugin with a local emulation of the Netlify environment | [![npm version](https://img.shields.io/npm/v/@netlify/vite-plugin.svg)](https://www.npmjs.com/package/@netlify/vite-plugin) |
24+
| Name | Description | Version |
25+
| --------------------------------------------------- | ----------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
26+
| 🗄️ [@netlify/blobs](packages/blobs) | TypeScript client for Netlify Blobs | [![npm version](https://img.shields.io/npm/v/@netlify/blobs.svg)](https://www.npmjs.com/package/@netlify/blobs) |
27+
| 💾 [@netlify/cache](packages/cache) | TypeScript utilities for interacting with the Netlify cache | [![npm version](https://img.shields.io/npm/v/@netlify/cache.svg)](https://www.npmjs.com/package/@netlify/cache) |
28+
| 🛠️ [@netlify/dev](packages/dev) | Emulation of the Netlify environment for local development | [![npm version](https://img.shields.io/npm/v/@netlify/dev.svg)](https://www.npmjs.com/package/@netlify/dev) |
29+
| 🔧 [@netlify/dev-utils](packages/dev-utils) | TypeScript utilities for the local emulation of the Netlify environment | [![npm version](https://img.shields.io/npm/v/@netlify/dev-utils.svg)](https://www.npmjs.com/package/@netlify/dev-utils) |
30+
|[@netlify/functions](packages/functions) | TypeScript utilities for interacting with Netlify Functions | [![npm version](https://img.shields.io/npm/v/@netlify/functions.svg)](https://www.npmjs.com/package/@netlify/functions) |
31+
| 🔍 [@netlify/otel](packages/otel) | TypeScript utilities to interact with Netlify's OpenTelemetry | [![npm version](https://img.shields.io/npm/v/@netlify/otel.svg)](https://www.npmjs.com/package/@netlify/otel) |
32+
| 🔄 [@netlify/redirects](packages/redirects) | TypeScript implementation of Netlify's rewrites and redirects engine | [![npm version](https://img.shields.io/npm/v/@netlify/redirects.svg)](https://www.npmjs.com/package/@netlify/redirects) |
33+
| 🏛️ [@netlify/runtime](packages/runtime) | Netlify compute runtime | [![npm version](https://img.shields.io/npm/v/@netlify/runtime.svg)](https://www.npmjs.com/package/@netlify/runtime) |
34+
| 🔨 [@netlify/runtime-utils](packages/runtime-utils) | Cross-environment utilities for the Netlify runtime | [![npm version](https://img.shields.io/npm/v/@netlify/runtime-utils.svg)](https://www.npmjs.com/package/@netlify/runtime-utils) |
35+
| 📁 [@netlify/static](packages/static) | TypeScript implementation of Netlify's static file serving logic | [![npm version](https://img.shields.io/npm/v/@netlify/static.svg)](https://www.npmjs.com/package/@netlify/static) |
36+
| 🔢 [@netlify/types](packages/types) | TypeScript types for Netlify platform primitives | [![npm version](https://img.shields.io/npm/v/@netlify/types.svg)](https://www.npmjs.com/package/@netlify/types) |
37+
| 🔌 [@netlify/vite-plugin](packages/vite-plugin) | Vite plugin with a local emulation of the Netlify environment | [![npm version](https://img.shields.io/npm/v/@netlify/vite-plugin.svg)](https://www.npmjs.com/package/@netlify/vite-plugin) |

0 commit comments

Comments
 (0)