Skip to content

Commit 92b14f6

Browse files
committed
Fix transform
1 parent 00474d0 commit 92b14f6

File tree

7 files changed

+15
-84
lines changed

7 files changed

+15
-84
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Transform and Publish
4141
run: |
4242
deno task trasnform
43-
cd dist
43+
cd dist/
4444
npm publish --access public
4545
env:
4646
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

_transform.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,11 @@ await build({
2424
lib: ["ESNext", "DOM", "ESNext.AsyncIterable"],
2525
},
2626
shims: {
27-
custom: [
28-
{
29-
package: {
30-
name: "@mtkruto/node",
31-
version: mtkrutoVersion,
32-
},
33-
globalNames: ["Client"],
34-
},
35-
],
27+
prompts: true,
28+
deno: true
29+
},
30+
mappings: {
31+
"./client.ts": "./client.node.ts",
3632
},
3733
packageManager: "pnpm",
3834
package: {
@@ -43,6 +39,9 @@ await build({
4339
type: "git",
4440
url: "git+https://github.com/MTKruto/create-auth-string.git",
4541
},
42+
dependencies: {
43+
"@mtkruto/node": mtkrutoVersion,
44+
},
4645
},
4746
postBuild() {
4847
Deno.copyFileSync("LICENSE", "dist/LICENSE");

client.node.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { Client } from "@mtkruto/node";

client.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { Client } from "@mtkruto/mtkruto";

deno.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mtkruto/auth-string",
3-
"version": "0.0.0",
3+
"version": "0.0.1",
44
"tasks": {
55
"dev": "deno run --watch main.ts",
66
"transform": "deno --allow-env --allow-read --allow-run --allow-write=. _transform.ts"
@@ -10,7 +10,7 @@
1010
},
1111
"imports": {
1212
"@deno/dnt": "jsr:@deno/dnt@^0.42.3",
13-
"@mtkruto/mtkruto": "jsr:@mtkruto/mtkruto@^0.75.1"
13+
"@mtkruto/mtkruto": "jsr:@mtkruto/mtkruto@^0.76.0"
1414
},
1515
"exclude": [
1616
"/dist/"

deno.lock

Lines changed: 1 addition & 71 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Client } from "@mtkruto/mtkruto";
1+
import { Client } from "./client.ts";
22
import { findApiCredentials } from "./find_api_credentials.ts";
33
import { isApiHashValid } from "./is_api_hash_valid.ts";
44

0 commit comments

Comments
 (0)