Skip to content

Commit

Permalink
chore: update internal formatting plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Jan 14, 2024
1 parent 0bc4807 commit 019e127
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions deployment/npm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
12 changes: 6 additions & 6 deletions deployment/npm/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
10 changes: 5 additions & 5 deletions dprint.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
}
2 changes: 1 addition & 1 deletion scripts/generate_release_notes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 019e127

Please sign in to comment.