fix example

This commit is contained in:
Alexander Wang 2025-01-13 20:18:15 -07:00
parent c32ef8a6dc
commit 45a9f58b42
No known key found for this signature in database
GPG key ID: BE3937D0D52D8927
2 changed files with 2 additions and 2 deletions

View file

@ -30,7 +30,7 @@
</div> </div>
<div id="output"></div> <div id="output"></div>
<script type="module"> <script type="module">
import { D2 } from "../src/index.js"; import { D2 } from "../dist/browser/index.js";
const d2 = new D2(); const d2 = new D2();
window.compile = async () => { window.compile = async () => {
const input = document.getElementById("input").value; const input = document.getElementById("input").value;

View file

@ -2,7 +2,7 @@
"name": "@terrastruct/d2", "name": "@terrastruct/d2",
"author": "Terrastruct, Inc.", "author": "Terrastruct, Inc.",
"description": "D2.js is a wrapper around the WASM build of D2, the modern text-to-diagram language.", "description": "D2.js is a wrapper around the WASM build of D2, the modern text-to-diagram language.",
"version": "0.1.11", "version": "0.1.12",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/terrastruct/d2.git", "url": "git+https://github.com/terrastruct/d2.git",