From 4e858bc691e48c14b602ebe06298d7b5159f0cac Mon Sep 17 00:00:00 2001 From: Thomas Weber Date: Sun, 12 Dec 2021 11:25:05 -0600 Subject: [PATCH] Update demos --- api/demo-simple.js | 2 ++ api/demo.js | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/api/demo-simple.js b/api/demo-simple.js index 36153bc..81119e9 100644 --- a/api/demo-simple.js +++ b/api/demo-simple.js @@ -2,6 +2,8 @@ const fs = require('fs'); const path = require('path'); const fetch = require('cross-fetch').default; +// You should use require('@turbowarp/packager') instead +// We use a strange require() in this demo because we use this to test the API internally const Packager = require('../dist/packager'); const run = async () => { diff --git a/api/demo.js b/api/demo.js index faa6bc9..db22f52 100644 --- a/api/demo.js +++ b/api/demo.js @@ -2,7 +2,9 @@ const fs = require('fs'); const path = require('path'); const fetch = require('cross-fetch').default; -const Packager = require('../dist/packager'); +// You should use require('@turbowarp/packager') instead +// We use a strange require() in this demo because we use this to test the API internally +const Packager = require('@turbowarp/packger'); const run = async () => { const projectData = await (await fetch('https://projects.scratch.mit.edu/1')).arrayBuffer();