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:
23
package.json
23
package.json
@@ -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}\"",
|
||||
@@ -38,4 +39,4 @@
|
||||
"prettier": "^3.3.3",
|
||||
"typescript": "^5.6.3"
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user