Skip to content

Commit

Permalink
#728 fix index lib
Browse files Browse the repository at this point in the history
  • Loading branch information
joepio committed Dec 6, 2023
1 parent ddecf1a commit 325a970
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
10 changes: 4 additions & 6 deletions CONTRIBUTE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ Check out the [Roadmap](https://docs.atomicdata.dev/roadmap.html) if you want to
- [Table of contents](#table-of-contents)
- [Running \& compiling](#running--compiling)
- [Running locally (with local development browser)](#running-locally-with-local-development-browser)
- [Debugging](#debugging)
- [IDE setup (VSCode)](#ide-setup-vscode)
- [Compilation using Earthly](#compilation-using-earthly)
- [Improve local compilation speed](#improve-local-compilation-speed)
Expand Down Expand Up @@ -51,15 +50,14 @@ TL;DR Clone the repo and run `cargo run` from each folder (e.g. `cli` or `server
- Visit your `localhost` in your locally running `atomic-data-browser` instance: (e.g. `http://localhost:5173/app/show?subject=http%3A%2F%2Flocalhost`)
- use `cargo watch -- cargo run` to automatically recompile `atomic-server` when you update JS assets in `browser`

### Debugging

- **VSCode Users**: Install the `CodeLLDB` plugin, and press F5 to start debugging. Breakpoints, inspect... The good stuff.

### IDE setup (VSCode)

This project is primarily being developed in VSCode.
That doesn't mean that you should, too, but it means you're less likely to run into issues.
The `/.vscode` directory contains various tasks, recommended extensions, and some settings overwrites.

- **Tasks**: The `/.vscode` directory contains various `tasks` (open command palette => search "run task")
- **Debugging**: Install the `CodeLLDB` plugin, and press F5 to start debugging. Breakpoints, inspect... The good stuff.
- **Extensions**: That same directory will give a couple of suggestions for extensions to install.

### Compilation using Earthly

Expand Down
5 changes: 4 additions & 1 deletion browser/cli/src/generateIndex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ const TEMPLATE = `
* GENERATED WITH @tomic/cli
* -------------------------------- */
import { registerOntologies } from '${Inserts.MODULE_ALIAS}';
import { registerOntologies } from '${
// Prevents a circular dependency
atomicConfig._ISLIB_ ? '../ontology.js' : Inserts.MODULE_ALIAS
}';
${Inserts.IMPORTS}
Expand Down
2 changes: 1 addition & 1 deletion browser/lib/src/ontologies/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* GENERATED WITH @tomic/cli
* -------------------------------- */

import { registerOntologies } from '../index.js';
import { registerOntologies } from '../ontology.js';

import { core } from './core.js';
import { commits } from './commits.js';
Expand Down
2 changes: 1 addition & 1 deletion browser/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@
"type": "module",
"types": "dist/index.d.ts",
"typings": "./dist/index.d.ts",
"version": "0.36.0"
"version": "0.36.1"
}

0 comments on commit 325a970

Please sign in to comment.