File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -277,19 +277,25 @@ jobs:
277
277
mkdir -p $(dirname $WASM_FILE)
278
278
wasm-opt -Oz target/wasm/wasm32-unknown-unknown/debug/typegraph_core.wasm -o $WASM_FILE.opt
279
279
wasm-tools component new $WASM_FILE.opt -o $WASM_FILE
280
- rm -rf typegraph/node/sdk/src/gen typegraph/node/sdk/dist
280
+
281
281
jco transpile $WASM_FILE -o typegraph/node/sdk/src/gen --map metatype:typegraph/host=../host/host.js
282
282
cd typegraph/node
283
283
pnpm install
284
284
pnpm run sdk-build
285
285
cp ./sdk/{package.json,package-lock.json,LICENSE.md} ./sdk/dist
286
286
cd ../..
287
- rm -rf typegraph/python/typegraph/gen
287
+
288
288
poetry run python -m wasmtime.bindgen $WASM_FILE --out-dir typegraph/python/typegraph/gen
289
289
290
290
# start the docker containers
291
291
deno run -A dev/env.ts base s3 prisma
292
292
293
+ # publish the sdk to the local registry
294
+ cd typegate/node/sdk/dist
295
+ npm config set "//localhost:4873/:_authToken" fooBar
296
+ npm publish --registry http://localhost:4873
297
+ cd ../../../..
298
+
293
299
# from old test-typegraph-core
294
300
# test in native rust, not in wasm for a future rust SDK
295
301
# without --tests, the --doc is causing a link error "syntax error in VERSION script"
You can’t perform that action at this time.
0 commit comments