Skip to content

Commit

Permalink
fix tests and node build
Browse files Browse the repository at this point in the history
  • Loading branch information
d-roak committed Sep 18, 2024
1 parent 45b4f2a commit 3efbefb
Show file tree
Hide file tree
Showing 18 changed files with 114 additions and 779 deletions.
77 changes: 36 additions & 41 deletions packages/blueprints/package.json
Original file line number Diff line number Diff line change
@@ -1,43 +1,38 @@
{
"name": "@topology-foundation/crdt",
"version": "0.1.1",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/topology-foundation/ts-topology.git"
},
"type": "module",
"types": "./dist/src/index.d.ts",
"files": [
"src",
"dist",
"!dist/test",
"!**/*.tsbuildinfo"
],
"exports": {
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
},
"./wasm": {
"types": "./dist/src/index.d.ts",
"import": "./src/index.asc.ts"
}
},
"scripts": {
"asbuild": "yarn asbuild:debug && yarn asbuild:release",
"asbuild:debug": "asc --config asconfig.json --target debug",
"asbuild:release": "asc --config asconfig.json --target release",
"build": "tsc -b",
"clean": "rm -rf dist/ node_modules/",
"prepack": "tsc -b",
"test": "vitest"
},
"devDependencies": {
"@topology-foundation/object": "0.1.1",
"assemblyscript": "^0.27.29"
},
"dependencies": {
"@thi.ng/random": "^4.0.3"
}
"name": "@topology-foundation/blueprints",
"version": "0.1.1",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/topology-foundation/ts-topology.git"
},
"type": "module",
"types": "./dist/src/index.d.ts",
"files": ["src", "dist", "!dist/test", "!**/*.tsbuildinfo"],
"exports": {
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
},
"./wasm": {
"types": "./dist/src/index.d.ts",
"import": "./src/index.asc.ts"
}
},
"scripts": {
"asbuild": "yarn asbuild:debug && yarn asbuild:release",
"asbuild:debug": "asc --config asconfig.json --target debug",
"asbuild:release": "asc --config asconfig.json --target release",
"build": "tsc -b",
"clean": "rm -rf dist/ node_modules/",
"prepack": "tsc -b",
"test": "vitest"
},
"devDependencies": {
"@topology-foundation/object": "0.1.1",
"assemblyscript": "^0.27.29"
},
"dependencies": {
"@thi.ng/random": "^4.0.3"
}
}
9 changes: 2 additions & 7 deletions packages/blueprints/src/index.asc.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
// export * from "./builtins/2PSet/index.js";
// export * from "./builtins/GCounter/index.js";
export * from "./crdts/GSet/index.js";
// export * from "./builtins/IPSet/index.js";
// export * from "./builtins/LWWElementSet/index.js";
// export * from "./builtins/LWWRegister/index.js";
// export * from "./builtins/PNCounter/index.js";
export * from "./AddWinsSet/index.js";
export * from "./PseudoRandomWinsSet/index.js";
13 changes: 2 additions & 11 deletions packages/blueprints/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,2 @@
export * from "./crdts/2PSet/index.js";
export * from "./crdts/GCounter/index.js";
export * from "./crdts/GSet/index.js";
export * from "./crdts/IPSet/index.js";
export * from "./crdts/LWWElementSet/index.js";
export * from "./crdts/LWWRegister/index.js";
export * from "./crdts/OORSet/index.js";
export * from "./crdts/PNCounter/index.js";
export * from "./crdts/RGA/index.js";

export * from "./cros/AddWinsSet/index.js";
export * from "./AddWinsSet/index.js";
export * from "./PseudoRandomWinsSet/index.js";
2 changes: 1 addition & 1 deletion packages/blueprints/tests/AddWinsSet.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { beforeEach, describe, expect, test } from "vitest";
import { AddWinsSet } from "../src/cros/AddWinsSet/index.js";
import { AddWinsSet } from "../src/AddWinsSet/index.js";

describe("HashGraph for AddWinSet tests", () => {
let cro: AddWinsSet<number>;
Expand Down
42 changes: 0 additions & 42 deletions packages/blueprints/tests/GCounter.test.ts

This file was deleted.

44 changes: 0 additions & 44 deletions packages/blueprints/tests/GSet.test.ts

This file was deleted.

145 changes: 0 additions & 145 deletions packages/blueprints/tests/IPSet.test.ts

This file was deleted.

Loading

0 comments on commit 3efbefb

Please sign in to comment.