@ai-sdk/workflow@1.0.17 publishes only dist/index.mjs and dist/index.d.mts, but package.json points elsewhere:
"main": "./dist/index.js",
"exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", "require": "./dist/index.js" } }
dist/index.js and dist/index.d.ts aren't in the tarball, so require('@ai-sdk/workflow') throws MODULE_NOT_FOUND. import() resolves fine via the import condition.
@ai-sdk/workflow@1.0.17publishes onlydist/index.mjsanddist/index.d.mts, butpackage.jsonpoints elsewhere:dist/index.jsanddist/index.d.tsaren't in the tarball, sorequire('@ai-sdk/workflow')throwsMODULE_NOT_FOUND.import()resolves fine via theimportcondition.