Assert Oxc and Yuku parser wasm version (#20202)
This commit is contained in:
1 parent
d62653b04d
commit
43432349d4
2 files changed
+10
No files matched your search
@@ -1,5 +1,8 @@
|
||||
import assert from "node:assert/strict";
|
||||
import path from "node:path";
|
||||
import oxcParserWasmPackageJson from "@oxc-parser/binding-wasm32-wasip1/package.json" with { type: "json" };
|
||||
import { outdent } from "outdent";
|
||||
import oxcParserPackageJson from "oxc-parser/package.json" with { type: "json" };
|
||||
import { DIST_DIR, PACKAGES_DIRECTORY } from "../../utilities/index.js";
|
||||
import { createJavascriptModuleBuilder } from "../builders/javascript-module.js";
|
||||
import { getPackageFile } from "../utilities.js";
|
||||
@@ -8,6 +11,8 @@ import {
|
||||
createTypesConfig,
|
||||
} from "./config-helpers.js";
|
||||
|
||||
assert.equal(oxcParserPackageJson.version, oxcParserWasmPackageJson.version);
|
||||
|
||||
const packageConfig = {
|
||||
packageName: "@prettier/plugin-oxc",
|
||||
sourceDirectory: path.join(PACKAGES_DIRECTORY, "plugin-oxc"),
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
import assert from "node:assert/strict";
|
||||
import path from "node:path";
|
||||
import yukuParserWasmPackageJson from "@yuku-core/wasm/package.json" with { type: "json" };
|
||||
import yukuParserPackageJson from "yuku-parser/package.json" with { type: "json" };
|
||||
import { DIST_DIR, PACKAGES_DIRECTORY } from "../../utilities/index.js";
|
||||
import { createJavascriptModuleBuilder } from "../builders/javascript-module.js";
|
||||
import {
|
||||
@@ -6,6 +9,8 @@ import {
|
||||
createTypesConfig,
|
||||
} from "./config-helpers.js";
|
||||
|
||||
assert.equal(yukuParserPackageJson.version, yukuParserWasmPackageJson.version);
|
||||
|
||||
const packageConfig = {
|
||||
packageName: "@prettier/plugin-yuku",
|
||||
sourceDirectory: path.join(PACKAGES_DIRECTORY, "plugin-yuku"),
|
||||
|
||||
Reference in new issue
Block a user