Skip to content

Commit 1da22f8

Browse files
committed
Removing deno.json in favor of the jsr: scheme in a deps structure
1 parent 2a03ae5 commit 1da22f8

File tree

164 files changed

+1079
-706
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+1079
-706
lines changed

.github/workflows/release.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ function env(name: string): string {
44
return val;
55
}
66

7+
const files = env("FILES").split(/\s*,\s*/);
78
const version = env("VERSION");
89

910
if (!version.match(/^v\d+\.\d+\.\d+$/)) {
@@ -12,7 +13,7 @@ if (!version.match(/^v\d+\.\d+\.\d+$/)) {
1213

1314
console.log("Updating versions in files");
1415

15-
for (const file of ["jsr.json", "deno.json"]) {
16+
for (const file of files) {
1617
console.log(`Updating ${file} for ${version}...`);
1718
const orig = Deno.readTextFileSync(file);
1819
const updated = orig.replace(/\d+\.\d+\.\d+/, version.substring(1));

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
- name: Update version and README.md
2323
env:
2424
VERSION: ${{ inputs.version }}
25+
FILES: "README.md,jsr.json"
2526
run: |
2627
deno run --allow-run --allow-env --allow-write --allow-read ./.github/workflows/release.ts
2728
- name: Commit and tag release

apex.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
tasks:
2+
test:
3+
description: Run tests
4+
cmds:
5+
- deno fmt --check src/ test/
6+
- deno lint src/
7+
- deno check ./**/*.ts
8+
- deno test -A --unstable-worker-options --permit-no-files
9+
install:
10+
description: Install templates
11+
cmds:
12+
- apex install ./templates/mod.ts

deno.json

Lines changed: 0 additions & 37 deletions
This file was deleted.

deno.lock

Lines changed: 0 additions & 242 deletions
This file was deleted.

deps/@apexlang/apex/config/mod.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from "jsr:@apexlang/apex@^0.2.1/config";

deps/@apexlang/apex/mod.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from "jsr:@apexlang/apex@^0.2.1";

deps/@apexlang/apex/task/mod.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from "jsr:@apexlang/apex@^0.2.1/task";

deps/@apexlang/core/ast/mod.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from "jsr:@apexlang/core@^0.2.0/ast";

deps/@apexlang/core/mod.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from "jsr:@apexlang/core@^0.2.0";

0 commit comments

Comments
 (0)