Skip to content

Commit 0f3c066

Browse files
committed
Merge branch 'release/4.0.0'
2 parents 2bfc98a + 32b29fb commit 0f3c066

File tree

249 files changed

+10340
-39235
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

249 files changed

+10340
-39235
lines changed

.build/build.sh

Lines changed: 0 additions & 26 deletions
This file was deleted.

.build/bump_version.js

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
const { exec } = require("child_process");
2+
const { readFile, writeFile } = require("fs");
3+
const { join } = require("path");
4+
5+
const args = process.argv.slice(2);
6+
const version = args[0];
7+
const allPackages = args.includes("--all");
8+
9+
if (version == null || version === "") {
10+
throw new Error("Version is required");
11+
}
12+
13+
exec("pnpm m ls --json --depth=-1", (_, stdout) => {
14+
const modules = JSON.parse(stdout).filter(
15+
(module) => {
16+
return allPackages ? true : module.private !== true;
17+
}
18+
);
19+
20+
for (const module of modules) {
21+
const filePath = join(module.path, "package.json");
22+
23+
readFile(filePath, "utf8", (err, data) => {
24+
if (err) {
25+
throw new Error(err);
26+
}
27+
// Parse JSON
28+
const obj = JSON.parse(data);
29+
30+
// Change a property
31+
obj.version = version;
32+
33+
// Convert object back to JSON
34+
const json = JSON.stringify(obj, null, 2);
35+
36+
// Write JSON file
37+
writeFile(filePath, json, "utf8", (err) => {
38+
if (err) {
39+
throw new Error(err);
40+
} else {
41+
console.log("File successfully updated.");
42+
}
43+
});
44+
});
45+
}
46+
});

.build/pre-release.sh

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ patchVersion=$(npm --no-git-tag version patch)
55
nextVersion=${patchVersion}-next."$(date +%Y%m%d%H%M%S)"
66
echo "${nextVersion:1}"
77

8-
npm version --no-git-tag -f "${nextVersion:1}"
8+
node ./.build/bump_version.js "${nextVersion:1}"

.build/run_linux.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.

.build/run_osx.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

.build/setup_linux.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

.build/setup_osx.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/CONTRIBUTING.md

Whitespace-only changes.

.github/ISSUE_TEMPLATE/bug.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ about: Create a bug report to help us enhance our images
1313
- [ ] Docker container
1414
- [ ] Dev/Host system
1515

16+
**node version**:
17+
18+
**OS type and version**:
19+
1620
**Detailed error description**
1721

18-
**Steps to reproduce error**
22+
**Full code sample to reproduce**
1923

2024
**Additional content**
2125

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false

0 commit comments

Comments
 (0)