diff --git a/scripts/memory/mk.js b/scripts/memory/mk.js index ae14e1191..44cbe5277 100644 --- a/scripts/memory/mk.js +++ b/scripts/memory/mk.js @@ -1,6 +1,16 @@ import fs from 'fs'; -const pages = new URL('./project/src/pages/', import.meta.url); +const base = new URL('./project/', import.meta.url); +const pages = new URL('./src/pages/', base); + +await fs.promises.writeFile(new URL('./package.json', base), `{ + "name": "@test/smoke", + "version": "0.0.0", + "private": true, + "dependencies": { + "astro": "workspace:*" + } +}`); for (let i = 0; i < 100; i++) { let content = `--- diff --git a/scripts/memory/project/package.json b/scripts/memory/project/package.json deleted file mode 100644 index 6fff9ac81..000000000 --- a/scripts/memory/project/package.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "name": "@test/smoke", - "version": "0.0.0", - "private": true, - "dependencies": { - "astro": "workspace:*" - } -}