diff --git a/README.md b/README.md index fa5b6a6..1016130 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,8 @@ console.log(dump(buffer)); ## Packages -- [encoding](https://jsr.io/@stdext/encoding): Packages +- [encoding](https://jsr.io/@stdext/encoding): The encoding package contains + helpers for text encoding. ## Versioning diff --git a/_tools/bump_version.ts b/_tools/bump_version.ts index 449e5ee..adab23b 100644 --- a/_tools/bump_version.ts +++ b/_tools/bump_version.ts @@ -14,7 +14,7 @@ async function updateMetaVersion(filepath: string, version: string) { metaConfig.version = version; await Deno.writeTextFile( filepath, - JSON.stringify(metaConfig, null, 2), + JSON.stringify(metaConfig, null, 2) + "\n", ); } @@ -26,8 +26,6 @@ if (!version) { throw new Error("VERSION environment variable is required"); } -await updateMetaVersion(resolve("deno.json"), version); - for (const workspace of workspaces) { const workspacePath = resolve(workspace); const workspaceConfigPath = join(workspacePath, "deno.json"); diff --git a/deno.json b/deno.json index e84707b..28cc551 100644 --- a/deno.json +++ b/deno.json @@ -5,7 +5,7 @@ "@std/path": "jsr:@std/path@^0.224.0" }, "tasks": { - "bump_version": "deno run ./_tools/bump_version.ts", + "bump_version": "deno run --allow-env=VERSION --allow-read=. --allow-write=. ./_tools/bump_version.ts", "check": "deno fmt --check && deno lint && deno check **/*.ts", "test": "RUST_BACKTRACE=1 deno test --unstable-http --unstable-webgpu --allow-all --parallel --coverage --trace-leaks", "cov:gen": "deno coverage coverage --lcov --output=cov.lcov" diff --git a/encoding/deno.json b/encoding/deno.json index de8f79d..75d7cbd 100644 --- a/encoding/deno.json +++ b/encoding/deno.json @@ -1,5 +1,5 @@ { - "version": "0.0.0-1", + "version": "0.0.1", "name": "@stdext/encoding", "lock": false, "exports": {