node.js - npm module missing files after publish -
for reference, repo https://github.com/microsoftly/luis-response-builder.
the node module files generated tsc , output dist folder. have prepublishonly step removes dist folder, runs tsc, runs test against transpiled js. tests pass when publish fine.
the problem is, when install project anywhere else, dist folder contains file path dist/src/index.js.
i cannot life of me figure out why file missing when installed not when published.
check out package.json documentation files
.
since haven't included files
key, include file specified in main
(along other default files).
the files
value array can include multiple files and/or folders.
eg:
files: [ "dist", "config/somefile.js" ]
Comments
Post a Comment