Skip to content

Commit

Permalink
upgrade @sveltejs/package
Browse files Browse the repository at this point in the history
  • Loading branch information
sabine committed Jan 11, 2024
1 parent e1a94ff commit 3eb66d7
Show file tree
Hide file tree
Showing 4 changed files with 686 additions and 2,724 deletions.
13 changes: 0 additions & 13 deletions clean-dependencies.js

This file was deleted.

15 changes: 15 additions & 0 deletions create-package-json.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import * as fs from 'fs';

// read file into JSON
const pkg = JSON.parse(fs.readFileSync('package.json', 'utf-8'));

// adjust pkg json however you like ..
delete pkg["devDependencies"];

// write it to your output directory
fs.writeFileSync(
'./package/package.json', // path to your output directory may vary
JSON.stringify(pkg, null, 2)
);

console.log("Created package.json");
Loading

0 comments on commit 3eb66d7

Please sign in to comment.