Skip to content

Commit c91bbaa

Browse files
Copilothzhangxyz
andauthored
Rename atsds/tsds.mts to atsds/index.mts and update output to dist/index.mjs (#89)
* Initial plan * Rename tsds.mts to index.mts and update all references Co-authored-by: hzhangxyz <[email protected]> * Update sudoku example version from 0.0.2 to 0.0.4 Co-authored-by: hzhangxyz <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: hzhangxyz <[email protected]>
1 parent aa7a692 commit c91bbaa

File tree

14 files changed

+20
-20
lines changed

14 files changed

+20
-20
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ A deductive system for logical inference, implemented in C++. The library provid
66

77
- **C++ Core**: The core implementation in `src/` and `include/ds/` provides the fundamental data structures and algorithms
88
- **Python Bindings**: Built with pybind11, wrapping the C++ core (see `apyds/`)
9-
- **TypeScript/JavaScript Bindings**: Built with Emscripten, compiling C++ to WebAssembly (see `tsds/`)
9+
- **TypeScript/JavaScript Bindings**: Built with Emscripten, compiling C++ to WebAssembly (see `atsds/`)
1010

1111
## Features
1212

File renamed without changes.

docs/examples/sudoku.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The Sudoku solver encodes Sudoku rules as logical inference rules in the DS syst
2121
<script>
2222
(async () => {
2323
const vue = await import("https://unpkg.com/[email protected]/dist/vue.esm-browser.prod.js");
24-
const atsds = await import("https://unpkg.com/[email protected].2/dist/tsds.mjs");
24+
const atsds = await import("https://unpkg.com/[email protected].4/dist/index.mjs");
2525
const { loadModule } = await import("https://unpkg.com/[email protected]/dist/vue3-sfc-loader.esm.js");
2626

2727
const options = {

docs/getting-started/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The package works in browsers that support WebAssembly:
2626

2727
```html
2828
<script type="module">
29-
import { term_t } from "https://unpkg.com/atsds/dist/tsds.mjs";
29+
import { term_t } from "https://unpkg.com/atsds/dist/index.mjs";
3030
3131
const term = new term_t("(hello world)");
3232
console.log(term.toString());

examples/main.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { rule_t, search_t, buffer_size } from "../atsds/tsds.mts";
1+
import { rule_t, search_t, buffer_size } from "../atsds/index.mts";
22

33
function main() {
44
const temp_data_size = 1000;

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
"url": "git+https://github.com/USTC-KnowledgeComputingLab/ds.git"
99
},
1010
"type": "module",
11-
"exports": "./dist/tsds.mjs",
12-
"main": "dist/tsds.mjs",
13-
"module": "dist/tsds.mjs",
14-
"browser": "dist/tsds.mjs",
15-
"types": "dist/tsds.d.mts",
11+
"exports": "./dist/index.mjs",
12+
"main": "dist/index.mjs",
13+
"module": "dist/index.mjs",
14+
"browser": "dist/index.mjs",
15+
"types": "dist/index.d.mts",
1616
"files": [
17-
"dist/tsds.d.mts",
18-
"dist/tsds.mjs"
17+
"dist/index.d.mts",
18+
"dist/index.mjs"
1919
],
2020
"scripts": {
2121
"emcc": "emcc -std=c++20 atsds/ds.cc src/*.cc -Iinclude -lembind -o atsds/ds.mjs --emit-tsd ds.d.mts -O3 -ffast-math -flto -s ALLOW_MEMORY_GROWTH=1 -s SINGLE_FILE=1",

rollup.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { dts } from "rollup-plugin-dts";
66
export default [
77
{
88
input: {
9-
tsds: "atsds/tsds.mts",
9+
index: "atsds/index.mts",
1010
example: "examples/main.mjs",
1111
},
1212
output: {
@@ -18,7 +18,7 @@ export default [
1818
},
1919
{
2020
input: {
21-
tsds: "atsds/tsds.mts",
21+
index: "atsds/index.mts",
2222
},
2323
output: {
2424
dir: "dist",

tests/test_item.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { item_t, buffer_size } from "../atsds/tsds.mts";
1+
import { item_t, buffer_size } from "../atsds/index.mts";
22

33
let v = null;
44

tests/test_list.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { list_t, buffer_size } from "../atsds/tsds.mts";
1+
import { list_t, buffer_size } from "../atsds/index.mts";
22

33
let v = null;
44

tests/test_rule.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { rule_t, buffer_size } from "../atsds/tsds.mts";
1+
import { rule_t, buffer_size } from "../atsds/index.mts";
22

33
let v = null;
44

0 commit comments

Comments
 (0)