Skip to content

Commit fadee06

Browse files
committed
updated js package names, github actions
1 parent db20f36 commit fadee06

18 files changed

Lines changed: 51 additions & 33 deletions

File tree

.github/workflows/pypi_publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77

88
jobs:
99
test:
10+
if: |
11+
github.event_name == 'workflow_dispatch' ||
12+
(github.event_name == 'release' &&
13+
startsWith(github.ref, 'refs/tags/') &&
14+
contains(github.ref, 'py_v'))
1015
runs-on: ubuntu-latest
1116
strategy:
1217
matrix:

src/js/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"build": "pnpm -r build",
77
"dev": "pnpm -r --parallel run dev",
8-
"test": "pnpm --filter @fnnx/node --filter @fnnx/web test",
8+
"test": "pnpm --filter @fnnx-ai/node --filter @fnnx-ai/web test",
99
"lint": "pnpm -r lint",
1010
"clean": "pnpm -r clean",
1111
"play": "node --loader ts-node/esm pg_run.ts"
@@ -19,8 +19,8 @@
1919
"vitest": "^4.0.18"
2020
},
2121
"dependencies": {
22-
"@fnnx/common": "workspace:*",
23-
"@fnnx/node": "workspace:*",
24-
"@fnnx/web": "workspace:*"
22+
"@fnnx-ai/common": "workspace:*",
23+
"@fnnx-ai/node": "workspace:*",
24+
"@fnnx-ai/web": "workspace:*"
2525
}
2626
}

src/js/packages/common/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "@fnnx/common",
3-
"version": "0.2.0",
2+
"name": "@fnnx-ai/common",
3+
"version": "0.0.1",
44
"type": "module",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/js/packages/node/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "@fnnx/node",
3-
"version": "0.2.0",
2+
"name": "@fnnx-ai/node",
3+
"version": "0.0.1",
44
"type": "module",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
@@ -10,7 +10,7 @@
1010
"clean": "rm -rf dist"
1111
},
1212
"dependencies": {
13-
"@fnnx/common": "workspace:*",
13+
"@fnnx-ai/common": "workspace:*",
1414
"onnxruntime-node": "^1.20.1"
1515
},
1616
"devDependencies": {

src/js/packages/node/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export { Model } from "./model.js";
2-
export { NDArray, ArrayDType, NDContainer, DtypesManager } from "@fnnx/common";
3-
export type { Inputs, Outputs, DynamicAttributes } from "@fnnx/common";
4-
export { interfaces } from "@fnnx/common";
2+
export { NDArray, ArrayDType, NDContainer, DtypesManager } from "@fnnx-ai/common";
3+
export type { Inputs, Outputs, DynamicAttributes } from "@fnnx-ai/common";
4+
export { interfaces } from "@fnnx-ai/common";

src/js/packages/node/src/model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { readFileSync, writeFileSync, mkdirSync, readdirSync, statSync, rmSync, mkdtempSync } from "node:fs";
22
import { tmpdir } from "node:os";
33
import path from "node:path";
4-
import { interfaces, LocalHandler, DtypesManager, Inputs, Outputs, DynamicAttributes, applyPatches } from "@fnnx/common";
4+
import { interfaces, LocalHandler, DtypesManager, Inputs, Outputs, DynamicAttributes, applyPatches } from "@fnnx-ai/common";
55
import { TarExtractor } from "./tar.js";
66
import { ONNXOpV1 } from "./ops.js";
77

src/js/packages/node/src/ops.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { BaseOp, interfaces, DtypesManager, NDArray, ArrayDType } from "@fnnx/common";
1+
import { BaseOp, interfaces, DtypesManager, NDArray, ArrayDType } from "@fnnx-ai/common";
22
import * as ort from "onnxruntime-node";
33

44
export class ONNXOpV1 extends BaseOp {

src/js/packages/node/src/tar.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { interfaces } from "@fnnx/common";
1+
import { interfaces } from "@fnnx-ai/common";
22

33
export class TarExtractor {
44
private offset = 0;

src/js/packages/node/tests/jsonpatcher.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, it, expect } from "vitest";
2-
import { applyPatches } from "@fnnx/common";
2+
import { applyPatches } from "@fnnx-ai/common";
33

44
describe("applyPatches", () => {
55
describe("add operation", () => {

src/js/packages/node/tests/model.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { tmpdir } from "node:os";
44
import path from "node:path";
55
import { fileURLToPath } from "node:url";
66
import { Model } from "../src/model";
7-
import { NDArray } from "@fnnx/common";
7+
import { NDArray } from "@fnnx-ai/common";
88
import { TarExtractor } from "../src/tar";
99

1010
const __filename = fileURLToPath(import.meta.url);

0 commit comments

Comments
 (0)