Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronmoreau committed Oct 2, 2021
1 parent 8d939ca commit 35ff8d2
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
4 changes: 3 additions & 1 deletion example-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
"next-themes": "^0.0.15",
"react": "17.0.2",
"react-dom": "17.0.2",
"run-wasm": "link:.."
"run-wasm": "link:..",
"run-wasm-ts": "link:../packages/run-wasm-ts",
"run-wasm-python": "link:../packages/run-wasm-python"
},
"devDependencies": {
"@types/react": "17.0.21",
Expand Down
2 changes: 1 addition & 1 deletion example-nextjs/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useEffect, useState } from 'react'
import { createPythonClient, RunWasm } from 'run-wasm'
import { createPythonClient } from 'run-wasm-python'
import Editor from '@monaco-editor/react'
import Script from 'next/script'
import GithubButton from '../components/GithubButton'
Expand Down
2 changes: 1 addition & 1 deletion example-nextjs/pages/matplotlib.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useEffect, useState } from 'react'
import { createPythonClient, RunWasm } from 'run-wasm'
import { createPythonClient } from 'run-wasm-python'
import Editor from '@monaco-editor/react'
import Script from 'next/script'
import Navbar from '../components/Navbar'
Expand Down
2 changes: 1 addition & 1 deletion example-nextjs/pages/ts.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useEffect, useState } from 'react'
import { createTSClient } from 'run-wasm'
import { createTSClient } from 'run-wasm-ts'
import Editor from '@monaco-editor/react'
import Script from 'next/script'
import Navbar from '../components/Navbar'
Expand Down
8 changes: 8 additions & 0 deletions example-nextjs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3092,6 +3092,14 @@ run-parallel@^1.1.9:
dependencies:
queue-microtask "^1.2.2"

"run-wasm-python@link:../packages/run-wasm-python":
version "0.0.0"
uid ""

"run-wasm-ts@link:../packages/run-wasm-ts":
version "0.0.0"
uid ""

"run-wasm@link:..":
version "0.0.0"
uid ""
Expand Down

0 comments on commit 35ff8d2

Please sign in to comment.