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:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,4 +1,5 @@
|
|||||||
/.idea/
|
/.idea/
|
||||||
/node_modules/
|
/node_modules/
|
||||||
|
/dist/
|
||||||
/prompt.md
|
/prompt.md
|
||||||
/todo
|
/todo
|
||||||
|
23
package.json
23
package.json
@@ -1,26 +1,27 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"name": "workflow-function-manifold",
|
"name": "workflow-function-manifold",
|
||||||
"version": "1.0.6",
|
"version": "1.0.6",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "for building dynamic, LLM-driven workflows using a region-based execution model",
|
"description": "for building dynamic, LLM-driven workflows using a region-based execution model",
|
||||||
"main": "lib.js",
|
"main": "src/index.ts",
|
||||||
"module": "lib.js",
|
"module": "src/index.ts",
|
||||||
"types": "lib.d.ts",
|
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"import": "./lib.js",
|
"import": "./dist/index.js",
|
||||||
"require": "./lib.js"
|
"require": "./dist/index.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"workflow-function-manifold": "./bin.js"
|
"workflow-function-manifold": "./dist/cli.js"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node bin.js",
|
"start": "bun src/cli.ts",
|
||||||
"dev": "node bin.js",
|
"dev": "bun src/cli.ts",
|
||||||
"cli": "bun cli.ts",
|
"build": "rm -rf ./dist && bun build src/* --outdir dist",
|
||||||
|
"cli": "bun src/cli.ts",
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
|
"lint": "eslint .",
|
||||||
"deploy:dev": "pnpm publish .",
|
"deploy:dev": "pnpm publish .",
|
||||||
"lint:fix": "eslint . --fix",
|
"lint:fix": "eslint . --fix",
|
||||||
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md,yml,yaml}\"",
|
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md,yml,yaml}\"",
|
||||||
@@ -38,4 +39,4 @@
|
|||||||
"prettier": "^3.3.3",
|
"prettier": "^3.3.3",
|
||||||
"typescript": "^5.6.3"
|
"typescript": "^5.6.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -4,7 +4,7 @@ import {
|
|||||||
WorkflowFunctionManifold,
|
WorkflowFunctionManifold,
|
||||||
WorkflowOperator,
|
WorkflowOperator,
|
||||||
NestedManifoldRegion,
|
NestedManifoldRegion,
|
||||||
} from '.';
|
} from './index';
|
||||||
|
|
||||||
async function demonstrateNestedManifold() {
|
async function demonstrateNestedManifold() {
|
||||||
const nestedIntentService = new DummyIntentMap();
|
const nestedIntentService = new DummyIntentMap();
|
Reference in New Issue
Block a user