Skip to content

Commit

Permalink
refactor: write smoke package.json programmatically
Browse files Browse the repository at this point in the history
  • Loading branch information
bholmesdev committed Jun 27, 2022
1 parent 06446e0 commit f846fc9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
12 changes: 11 additions & 1 deletion scripts/memory/mk.js
Original file line number Diff line number Diff line change
@@ -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 = `---
Expand Down
8 changes: 0 additions & 8 deletions scripts/memory/project/package.json

This file was deleted.

0 comments on commit f846fc9

Please sign in to comment.