File tree 3 files changed +24
-19
lines changed
3 files changed +24
-19
lines changed Original file line number Diff line number Diff line change @@ -95,16 +95,14 @@ const projectRunners = {
95
95
await run ( 'bun' , [ 'test' ] ) ;
96
96
}
97
97
} ,
98
- // Temporarily comment this out until we can test with JSR transformations end-to-end.
99
- // deno: async () => {
100
- // // we don't need to explicitly install the package here
101
- // // because our deno setup relies on `rootDir/deno` to exist
102
- // // which is an artifact produced from our build process
103
- // await run('deno', ['task', 'install']);
104
- // await run('deno', ['task', 'check']);
105
-
106
- // if (state.live) await run('deno', ['task', 'test']);
107
- // },
98
+ deno : async ( ) => {
99
+ // we don't need to explicitly install the package here
100
+ // because our deno setup relies on `rootDir/dist-deno` to exist
101
+ // which is an artifact produced from our build process
102
+ await run ( 'deno' , [ 'task' , 'install' , '--unstable-sloppy-imports' ] ) ;
103
+
104
+ if ( state . live ) await run ( 'deno' , [ 'task' , 'test' ] ) ;
105
+ } ,
108
106
} ;
109
107
110
108
let projectNames = Object . keys ( projectRunners ) as Array < keyof typeof projectRunners > ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"tasks" : {
3
3
"install" : " deno install --node-modules-dir main_test.ts -f" ,
4
- "check" : " deno lint && deno check main_test.ts" ,
5
- "test" : " deno test --allow-env --allow-net --allow-read --node-modules-dir"
4
+ "test" : " deno test --allow-env --allow-net --allow-read --node-modules-dir --unstable-sloppy-imports --no-check"
6
5
},
7
6
"imports" : {
8
- "openai" : " ../../deno/mod .ts" ,
9
- "openai/" : " ../../deno/"
7
+ "openai" : " ../../dist- deno/index .ts" ,
8
+ "openai/" : " ../../dist- deno/"
10
9
}
11
10
}
Original file line number Diff line number Diff line change @@ -7,13 +7,21 @@ cd "$(dirname "$0")/.."
7
7
rm -rf dist-deno; mkdir dist-deno
8
8
cp -rp src/* jsr.json dist-deno
9
9
10
+ rm -rf dist-deno/shims
11
+
12
+ rm dist-deno/_shims/node* .{js,mjs,ts}
13
+ rm dist-deno/_shims/manual* .{js,mjs,ts}
14
+ rm dist-deno/_shims/index.{d.ts,js,mjs}
15
+ for file in dist-deno/_shims/* -deno.ts; do
16
+ mv -- " $file " " ${file% -deno.ts} .ts"
17
+ done
18
+
10
19
rm dist-deno/_shims/auto/* -node.ts
11
- for dir in dist-deno/_shims dist-deno/_shims/auto; do
12
- rm " ${dir} " /* .{d.ts,js,mjs}
13
- for file in " ${dir} " /* -deno.ts; do
14
- mv -- " $file " " ${file% -deno.ts} .ts"
15
- done
20
+ rm dist-deno/_shims/auto/* .{d.ts,js,mjs}
21
+ for file in dist-deno/_shims/auto/* -deno.ts; do
22
+ mv -- " $file " " ${file% -deno.ts} .ts"
16
23
done
24
+
17
25
for file in README.md LICENSE CHANGELOG.md; do
18
26
if [ -e " ${file} " ]; then cp " ${file} " dist-deno; fi
19
27
done
You can’t perform that action at this time.
0 commit comments