Skip to content

Commit

Permalink
reading package.json using node readFile
Browse files Browse the repository at this point in the history
  • Loading branch information
pablouser1 committed Aug 28, 2024
1 parent 9991c9c commit 84a6a2f
Show file tree
Hide file tree
Showing 3 changed files with 153 additions and 151 deletions.
2 changes: 1 addition & 1 deletion meta.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import metablock from "rollup-plugin-userscript-metablock";
import type { Plugin } from "rollup";
import pkg from "./package.json" assert { type: "json" };
import { readFileSync } from "fs";
import { join } from "path";

const pkg = JSON.parse(readFileSync('package.json').toString("utf-8"));
// Required external resources from npm
const PKG_RESOURCES = {
gulagcleaner_wasm: "gulagcleaner_wasm_bg.wasm",
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
"devDependencies": {
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@types/node": "^20.12.7",
"@types/node": "^22.5.1",
"@violentmonkey/types": "^0.1.9",
"rollup": "^4.14.3",
"rollup-plugin-external-globals": "^0.10.0",
"rollup-plugin-sass": "^1.12.22",
"rollup-plugin-serve": "^3.0.0",
"rollup": "^4.21.1",
"rollup-plugin-external-globals": "^0.12.0",
"rollup-plugin-sass": "^1.13.2",
"rollup-plugin-serve": "^1.1.1",
"rollup-plugin-userscript-metablock": "^0.4.2",
"sass": "^1.75.0",
"tslib": "^2.6.2",
"typescript": "^5.4.5"
"sass": "^1.77.8",
"tslib": "^2.7.0",
"typescript": "^5.5.4"
},
"dependencies": {
"gulagcleaner_wasm": "^0.14.1",
Expand Down
Loading

0 comments on commit 84a6a2f

Please sign in to comment.