From 019e1273a3c285171e00a9fa80914099e7d6b336 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Sat, 13 Jan 2024 21:01:23 -0500 Subject: [PATCH] chore: update internal formatting plugins --- deployment/npm/index.js | 4 ++-- deployment/npm/setup.js | 12 ++++++------ dprint.json | 10 +++++----- scripts/generate_release_notes.ts | 2 +- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/deployment/npm/index.js b/deployment/npm/index.js index 07952bf..a174b45 100644 --- a/deployment/npm/index.js +++ b/deployment/npm/index.js @@ -3,9 +3,9 @@ * @returns {string} */ function getPath() { - return require("path").join(__dirname, "plugin.wasm"); + return require("path").join(__dirname, "plugin.wasm"); } module.exports = { - getPath, + getPath, }; diff --git a/deployment/npm/setup.js b/deployment/npm/setup.js index 30dfb1d..b187f32 100644 --- a/deployment/npm/setup.js +++ b/deployment/npm/setup.js @@ -6,10 +6,10 @@ const wasmPath = path.join(__dirname, "../../target/wasm32-unknown-unknown/relea fs.copyFileSync(wasmPath, path.join(__dirname, "plugin.wasm")); if (args.length > 0) { - // update the version based on the first argument - const packageJsonPath = path.join(__dirname, "package.json"); - const packageJsonText = fs.readFileSync(packageJsonPath, "utf8"); - const packageJson = JSON.parse(packageJsonText); - packageJson.version = args[0]; - fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, undefined, 2) + "\n"); + // update the version based on the first argument + const packageJsonPath = path.join(__dirname, "package.json"); + const packageJsonText = fs.readFileSync(packageJsonPath, "utf8"); + const packageJson = JSON.parse(packageJsonText); + packageJson.version = args[0]; + fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, undefined, 2) + "\n"); } diff --git a/dprint.json b/dprint.json index 1bb2cf4..e4da9c3 100644 --- a/dprint.json +++ b/dprint.json @@ -11,10 +11,10 @@ "**/target" ], "plugins": [ - "https://plugins.dprint.dev/typescript-0.62.1.wasm", - "https://plugins.dprint.dev/json-0.14.0.wasm", - "https://plugins.dprint.dev/markdown-0.12.1.wasm", - "https://plugins.dprint.dev/toml-0.5.3.wasm", - "https://plugins.dprint.dev/exec-0.4.2.json@ca3c3d1cc1105b4ac1c31afdb26791a90209f13a5950f8de00dcab5e5ee293a7" + "https://plugins.dprint.dev/typescript-0.88.9.wasm", + "https://plugins.dprint.dev/json-0.19.1.wasm", + "https://plugins.dprint.dev/markdown-0.16.3.wasm", + "https://plugins.dprint.dev/toml-0.5.4.wasm", + "https://plugins.dprint.dev/exec-0.4.4.json@c207bf9b9a4ee1f0ecb75c594f774924baf62e8e53a2ce9d873816a408cecbf7" ] } diff --git a/scripts/generate_release_notes.ts b/scripts/generate_release_notes.ts index 6daa31c..1605162 100644 --- a/scripts/generate_release_notes.ts +++ b/scripts/generate_release_notes.ts @@ -2,7 +2,7 @@ import { generateChangeLog } from "https://raw.githubusercontent.com/dprint/auto const version = Deno.args[0]; const changelog = await generateChangeLog({ - versionTo: version, + versionTo: version, }); const text = `## Changes