Refactor project structure and update build scripts

Moved main files to the "src" directory and updated paths accordingly. Adjusted build, start, and dev scripts to use Bun. Added "dist" directory to .gitignore to prevent it from being tracked.
This commit is contained in:
2024-11-14 23:09:37 -05:00
parent 3a57602f2f
commit 67542301be
4 changed files with 14 additions and 12 deletions

1
.gitignore vendored
View File

@@ -1,4 +1,5 @@
/.idea/
/node_modules/
/dist/
/prompt.md
/todo

View File

@@ -1,26 +1,27 @@
{
"name": "workflow-function-manifold",
"version": "1.0.6",
"type": "module",
"description": "for building dynamic, LLM-driven workflows using a region-based execution model",
"main": "lib.js",
"module": "lib.js",
"types": "lib.d.ts",
"main": "src/index.ts",
"module": "src/index.ts",
"exports": {
".": {
"import": "./lib.js",
"require": "./lib.js"
"import": "./dist/index.js",
"require": "./dist/index.js"
}
},
"bin": {
"workflow-function-manifold": "./bin.js"
"workflow-function-manifold": "./dist/cli.js"
},
"scripts": {
"start": "node bin.js",
"dev": "node bin.js",
"cli": "bun cli.ts",
"start": "bun src/cli.ts",
"dev": "bun src/cli.ts",
"build": "rm -rf ./dist && bun build src/* --outdir dist",
"cli": "bun src/cli.ts",
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"lint": "eslint .",
"deploy:dev": "pnpm publish .",
"lint:fix": "eslint . --fix",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md,yml,yaml}\"",

View File

@@ -4,7 +4,7 @@ import {
WorkflowFunctionManifold,
WorkflowOperator,
NestedManifoldRegion,
} from '.';
} from './index';
async function demonstrateNestedManifold() {
const nestedIntentService = new DummyIntentMap();