diff --git a/package.json b/package.json index 26c1f94ea..950660206 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,7 @@ "import-meta-resolve": "4.2.0", "index-to-position": "1.2.0", "is-es5-identifier-name": "1.0.1", - "jest-docblock": "30.2.0", + "jest-docblock": "30.4.0", "json5": "2.2.3", "leven": "4.1.0", "linguist-languages": "9.3.2", diff --git a/scripts/build/builders/javascript-module.js b/scripts/build/builders/javascript-module.js index 90c04305e..2a71f9f7d 100644 --- a/scripts/build/builders/javascript-module.js +++ b/scripts/build/builders/javascript-module.js @@ -73,15 +73,14 @@ function getEsbuildOptions({ packageConfig, file, cliOptions, buildOptions }) { text = lines.slice(startMarkLine + 1, endMarkLine - 2).join("\n"); - text = text - .replace( - "const line = (0, _detectNewline().default)(docblock) ?? _os().EOL;", - String.raw`const line = "\n"`, - ) - .replace( - "const line = (0, _detectNewline().default)(comments) ?? _os().EOL;", - String.raw`const line = "\n"`, - ); + text = text.replace( + "const line = (0, _detectNewline().default)(docblock) ?? _nodeOs().EOL;", + String.raw`const line = "\n"`, + ); + text = text.replace( + "const line = (0, _detectNewline().default)(comments) ?? _nodeOs().EOL;", + String.raw`const line = "\n"`, + ); text += "\n\n" + `export {${exports.join(", ")}};`; diff --git a/yarn.lock b/yarn.lock index a0a097f18..e4c3ab49c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6292,6 +6292,15 @@ __metadata: languageName: node linkType: hard +"jest-docblock@npm:30.4.0": + version: 30.4.0 + resolution: "jest-docblock@npm:30.4.0" + dependencies: + detect-newline: "npm:^3.1.0" + checksum: 10/0ee25351ef941e832e53d10e74f34b38941b8f5fe750584661f6c5a115771818b081b8e39830c49d152fd361af81c7800c2d3a3c3a0e2dc742f7bfdbb6b1baaa + languageName: node + linkType: hard + "jest-each@npm:30.3.0, jest-each@npm:^30.2.0": version: 30.3.0 resolution: "jest-each@npm:30.3.0" @@ -8667,7 +8676,7 @@ __metadata: index-to-position: "npm:1.2.0" is-es5-identifier-name: "npm:1.0.1" jest: "npm:30.3.0" - jest-docblock: "npm:30.2.0" + jest-docblock: "npm:30.4.0" jest-light-runner: "npm:0.7.11" jest-snapshot-serializer-ansi: "npm:2.2.1" jest-snapshot-serializer-raw: "npm:2.0.0"