-
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Monorepo build * Added global gitignore * Excluded .idea folder * Added step to set up pnpm * Added packageManager info to root level package.json * Replaced npx with pnpx * Fixed trailing comma * NPM_TOKEN * NPM_TOKEN * NPM_TOKEN * Added missing root level coverage:clean target * Streamlined naming of samples * Run coverage instead of test * Updated lock file * Updated sonar settings * Updated sonar settings * Aligned package versions, added script to bump versions on snapshot releases
- Loading branch information
Showing
240 changed files
with
11,710 additions
and
43,963 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
const { exec } = require("child_process"); | ||
const { readFile, writeFile } = require("fs"); | ||
const { join } = require("path"); | ||
|
||
const args = process.argv.slice(2); | ||
const version = args[0]; | ||
|
||
if (version == null || version === "") { | ||
throw new Error("Version is required"); | ||
} | ||
|
||
exec("pnpm m ls --json --depth=-1", (_, stdout) => { | ||
const modules = JSON.parse(stdout).filter( | ||
(module) => module.private !== true, | ||
); | ||
|
||
for (const module of modules) { | ||
const filePath = join(module.path, "package.json"); | ||
|
||
readFile(filePath, "utf8", (err, data) => { | ||
if (err) { | ||
throw new Error(err); | ||
} | ||
// Parse JSON | ||
const obj = JSON.parse(data); | ||
|
||
// Change a property | ||
obj.version = version; | ||
|
||
// Convert object back to JSON | ||
const json = JSON.stringify(obj, null, 2); | ||
|
||
// Write JSON file | ||
writeFile(filePath, json, "utf8", (err) => { | ||
if (err) { | ||
throw new Error(err); | ||
} else { | ||
console.log("File successfully updated."); | ||
} | ||
}); | ||
}); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "@nut-tree/configs", | ||
"private": true, | ||
"version": "4.0.0", | ||
"description": "Shared configs for nut.js", | ||
"author": { | ||
"name": "dry Software UG (haftungsbeschränkt)", | ||
"email": "info@dry.software", | ||
"url": "https://dry.software" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.