From d5997679cefe2e20e05c07e4f87e771464f4ab77 Mon Sep 17 00:00:00 2001 From: Xingzhao Chang Date: Wed, 3 Jan 2024 15:19:00 +0800 Subject: [PATCH] Update install section in README (#146) Co-authored-by: changxingzhao --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 146b0cc..1d30f7a 100644 --- a/README.md +++ b/README.md @@ -17,8 +17,9 @@ See the [TypeScript handbook](http://www.typescriptlang.org/docs/handbook/declar ### Install -- npm: `npm install --save @webgpu/types` -- yarn: `yarn add @webgpu/types` +- npm: `npm install --save-dev @webgpu/types` +- yarn: `yarn add --dev @webgpu/types` +- pnpm: `pnpm add -D @webgpu/types` If you are on TypeScript < 5.1, you will also need to install `@types/dom-webcodecs` as a sibling dependency. The version you need depends on the TypeScript version;