fix: remove the --save flag because deprecated (#2474)

Co-authored-by: Matti Nannt <mail@matthiasnannt.com>
This commit is contained in:
Johannes
2024-04-18 12:22:21 +02:00
committed by GitHub
parent b3883e8c9a
commit 8e31710604
3 changed files with 7 additions and 7 deletions

View File

@@ -76,7 +76,7 @@ Install the Formbricks SDK using one of the package managers ie `npm`,`pnpm`,`ya
<Col>
<CodeGroup title="Install Formbricks JS library">
```shell {{ title: 'npm' }}
npm install --save @formbricks/js
npm install @formbricks/js
```
```shell {{ title: 'pnpm' }}
pnpm add @formbricks/js
@@ -153,7 +153,7 @@ Code snippets for the integration for both conventions are provided to further a
<Col>
<CodeGroup title="Install Formbricks JS library">
```shell {{ title: 'npm' }}
npm install --save @formbricks/js
npm install @formbricks/js
```
```shell {{ title: 'pnpm' }}
pnpm add @formbricks/js
@@ -283,7 +283,7 @@ We will make sure the SDK is only loaded and used on the client side, as it's no
<Col>
<CodeGroup title="Install Formbricks JS library">
```shell {{ title: 'npm' }}
npm install --save @formbricks/js
npm install @formbricks/js
````
```shell {{ title: 'pnpm' }}

View File

@@ -32,9 +32,9 @@ export default function SetupInstructions({
{activeTab === "npm" ? (
<div className="prose prose-slate">
<p className="text-lg font-semibold text-slate-800">Step 1: Install with NPM or Yarn</p>
<CodeBlock language="sh">npm install @formbricks/js --save</CodeBlock>
<CodeBlock language="sh">npm install @formbricks/js</CodeBlock>
<p>or</p>
<CodeBlock language="sh">yarn add @formbricks/js --save</CodeBlock>
<CodeBlock language="sh">yarn add @formbricks/js</CodeBlock>
<p className="pt-4 text-lg font-semibold text-slate-800">Step 2: Initialize widget</p>
<p>Import Formbricks and initialize the widget in your Component (e.g. App.tsx):</p>
<CodeBlock language="js">{`import formbricks from "@formbricks/js";

View File

@@ -56,11 +56,11 @@ export default function SetupInstructionsOnboarding({
{activeTab === "npm" ? (
<div className="prose prose-slate">
<CodeBlock customEditorClass="!bg-white border border-slate-200" language="sh">
npm install @formbricks/js --save
npm install @formbricks/js
</CodeBlock>
<p>or</p>
<CodeBlock customEditorClass="!bg-white border border-slate-200" language="sh">
yarn add @formbricks/js --save
yarn add @formbricks/js
</CodeBlock>
<p className="text-sm text-slate-700">
Import Formbricks and initialize the widget in your Component (e.g. App.tsx):