fix: add overrides to ensure build outputs to build/dist/index.js#25
fix: add overrides to ensure build outputs to build/dist/index.js#25rothnic merged 4 commits intofix/limit-tools-for-opencodefrom
Conversation
…ld/index.js) Co-authored-by: rothnic <452052+rothnic@users.noreply.github.com>
Co-authored-by: rothnic <452052+rothnic@users.noreply.github.com>
|
@copilot build/dist/index.js is the correct path. Please check again to make sure that the ci/cd workflows are running the npm run generate command which should generate the mcp server (build/) then apply the transformations/overrides and eventually have build/dist/index.js. Please check all paths referenced in docs and ci/cd workflows for consistency and make sure we are reusing the package.json defined scripts in a way that we don't repeat ourselves. Please run the build commands yourself so you can see what happens when running npm run generate. |
…/index.js output Co-authored-by: rothnic <452052+rothnic@users.noreply.github.com>
You were absolutely right -
All paths are now consistent across:
Commit: 65b808b |
…mprovements (#23) * chore: update ls-lint configuration to ignore .opencode and allow eslint config * docs: add JSON Schema guide for API/MCP workflows * docs: add generated tools list and agent/testing guides * fix: correct CI workflow paths from generator/ to src/generator/ (#24) * Initial plan * fix: update CI workflow paths from generator/ to src/generator/ Co-authored-by: rothnic <452052+rothnic@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: rothnic <452052+rothnic@users.noreply.github.com> * fix: add overrides to ensure build outputs to build/dist/index.js (#25) * Initial plan * fix: update CI workflow to check correct build output path (build/build/index.js) Co-authored-by: rothnic <452052+rothnic@users.noreply.github.com> * fix: add empty JSON object to fix-schemas.json to fix validation Co-authored-by: rothnic <452052+rothnic@users.noreply.github.com> * fix: restore tsconfig and package.json overrides to ensure build/dist/index.js output Co-authored-by: rothnic <452052+rothnic@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: rothnic <452052+rothnic@users.noreply.github.com> --------- Co-authored-by: Nick Roth <nroth@dealnews.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: rothnic <452052+rothnic@users.noreply.github.com>
CI was failing because the generated
tsconfig.jsonhadoutDir: "./build"which would output tobuild/build/index.js, but the project expectsbuild/dist/index.js.Changes
src/overrides/tsconfig.patch.json: Restored override to changeoutDirfrom"./build"to"./dist"src/overrides/package-main.patch.json: Added override to updatemainfield to"dist/index.js"src/overrides/package-start.patch.json: Added override to updatestartscript to usedist/index.jssrc/overrides/package-build.patch.json: Added override to updatebuildscript chmod to targetdist/index.jssrc/overrides/fix-schemas.json: Fixed empty file causing validation errorsHow It Works
build/withtsconfig.jsonhavingoutDir: "./build"tsconfig.jsontooutDir: "./dist"package.jsonpathsbuild/dist/index.jsbuild/dist/index.jsVerification
npm run generatecompletes successfullybuild/dist/index.jsis created (473KB, executable)💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.