Skip to content

Commit

Permalink
fix: exports (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
load1n9 authored Sep 5, 2024
1 parent c1a928a commit 7024bff
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 24 deletions.
2 changes: 1 addition & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@denosaurs/netsaur",
"version": "0.3.2-patch3",
"version": "0.4.0",
"exports": {
".": "./mod.ts",
"./web": "./web.ts",
Expand Down
32 changes: 19 additions & 13 deletions mod.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
export { setupBackend } from "./packages/core/core/engine.ts";
export * from "./packages/core/core/mod.ts";
export * from "./packages/core/core/types.ts";
export * from "./packages/core/core/tensor/tensor.ts";
export * from "./packages/core/core/api/layers.ts";
export * from "./packages/core/core/api/shape.ts";
export * from "./packages/core/core/api/network.ts";
export * from "./packages/core/core/api/optimizer.ts";
export * from "./packages/core/core/api/scheduler.ts";
export { GPU } from "./packages/core/backends/gpu/mod.ts";
export { setupBackend } from "./packages/core/src/core/engine.ts";
export * from "./packages/core/src/core/mod.ts";
export * from "./packages/core/src/core/types.ts";
export * from "./packages/core/src/core/tensor/tensor.ts";
export * from "./packages/core/src/core/api/layers.ts";
export * from "./packages/core/src/core/api/shape.ts";
export * from "./packages/core/src/core/api/network.ts";
export * from "./packages/core/src/core/api/optimizer.ts";
export * from "./packages/core/src/core/api/scheduler.ts";
export { GPU } from "./packages/core/src/backends/gpu/mod.ts";

import { CPU, type CPUBackendLoader } from "./packages/core/backends/cpu/mod.ts";
import { WASM, type WASMBackendLoader } from "./packages/core/backends/wasm/mod.ts";
import type { BackendLoader } from "./packages/core/core/engine.ts";
import {
CPU,
type CPUBackendLoader,
} from "./packages/core/src/backends/cpu/mod.ts";
import {
WASM,
type WASMBackendLoader,
} from "./packages/core/src/backends/wasm/mod.ts";
import type { BackendLoader } from "./packages/core/src/core/engine.ts";

onerror = () => {
if (typeof Deno == "undefined") {
Expand Down
2 changes: 1 addition & 1 deletion visualizer/mod.ts → packages/visualizer/mod.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { NeuralNetwork, Rank, Tensor } from "../mod.ts";
import type { NeuralNetwork, Rank, Tensor } from "../../mod.ts";
import type { Line } from "./types.ts";

/**
Expand Down
File renamed without changes.
18 changes: 9 additions & 9 deletions web.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export { setupBackend } from "./packages/core/core/engine.ts";
export * from "./packages/core/core/mod.ts";
export * from "./packages/core/core/types.ts";
export * from "./packages/core/core/tensor/tensor.ts";
export * from "./packages/core/core/api/layers.ts";
export * from "./packages/core/core/api/shape.ts";
export * from "./packages/core/core/api/network.ts";
export * from "./packages/core/core/api/optimizer.ts";
export { setupBackend } from "./packages/core/src/core/engine.ts";
export * from "./packages/core/src/core/mod.ts";
export * from "./packages/core/src/core/types.ts";
export * from "./packages/core/src/core/tensor/tensor.ts";
export * from "./packages/core/src/core/api/layers.ts";
export * from "./packages/core/src/core/api/shape.ts";
export * from "./packages/core/src/core/api/network.ts";
export * from "./packages/core/src/core/api/optimizer.ts";

export { WASM } from "./packages/core/backends/wasm/mod.ts";
export { WASM } from "./packages/core/src/backends/wasm/mod.ts";

0 comments on commit 7024bff

Please sign in to comment.