build(deps): refactored TypeScript and package configuration across monorepo
- Added tsconfig.publish.json files to all packages with optimized publish-time configuration. - Updated all package.json scripts with prepublishOnly hooks for correct type checking during publish. - Added @oh-my-pi/omp-stats path mappings to root tsconfig.json for consistent imports. - Added WASM generation script for photon module and integrated into install:dev script.
This commit is contained in:
@@ -20,6 +20,11 @@
|
||||
"./hooks": {
|
||||
"types": "./src/extensibility/hooks/index.ts",
|
||||
"import": "./src/extensibility/hooks/index.ts"
|
||||
},
|
||||
"./prompts/*": "./src/prompts/*",
|
||||
"./*": {
|
||||
"types": "./src/*",
|
||||
"import": "./src/*"
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
@@ -35,10 +40,11 @@
|
||||
"clean": "rm -rf dist",
|
||||
"build": "tsgo -p tsconfig.build.json && chmod +x dist/cli.js",
|
||||
"build:binary": "bun run generate-wasm-b64 && bun build --compile ./src/cli.ts --outfile dist/omp",
|
||||
"generate-wasm-b64": "bun scripts/generate-wasm-b64.ts",
|
||||
"generate-template": "bun scripts/generate-template.ts",
|
||||
"postinstall": "bun run generate-template || true",
|
||||
"postinstall": "(bun run generate-wasm-b64 && bun run generate-template) || true",
|
||||
"test": "bun test",
|
||||
"prepublishOnly": "bun run generate-template"
|
||||
"prepublishOnly": "cp tsconfig.publish.json tsconfig.json && bun run generate-template"
|
||||
},
|
||||
"dependencies": {
|
||||
"@oh-my-pi/omp-stats": "workspace:*",
|
||||
|
||||
Reference in New Issue
Block a user