You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when you run tsc, the artifacts from it are placed side-by-side with the *.ts files. This is nice from a release standpoint as it allows for a very clean API usage for loading the various services/versions/etc such as:
However, it does make going through the build tree more annoying due to the additional clutter of build artifacts. I talked to @dpopp07 and he is suggesting in doing something similar to how rxjs publishes which is that they build their files to a build directory, move some amount of necessary additional files (e.g. package.json, README.md, etc.) and then publishes out of that subdirectory. This keeps the nice import directory structure, but separates out the build artifacts from the source tree.
To accomplish this, the necessary changes would be:
update tsconfig.json to have an outDir
tool/process to move any additional non-build files into the outDir (e.g. README.md, LICENSE, etc.)
modify @semantic-release/npm to have a pkgRoot property that points to the build directory.
None of these changes would have any affect on the installation package from NPM from an end-users perspective, so this can be accomplished anytime before or after v5 is published.
Per my discussion with @dpopp07 via slack, I am currently working on making a proof of concept for the repo and will be making a PR sometime in next week or so.
The text was updated successfully, but these errors were encountered:
Currently, when you run
tsc
, the artifacts from it are placed side-by-side with the *.ts files. This is nice from a release standpoint as it allows for a very clean API usage for loading the various services/versions/etc such as:However, it does make going through the build tree more annoying due to the additional clutter of build artifacts. I talked to @dpopp07 and he is suggesting in doing something similar to how rxjs publishes which is that they build their files to a build directory, move some amount of necessary additional files (e.g. package.json, README.md, etc.) and then publishes out of that subdirectory. This keeps the nice import directory structure, but separates out the build artifacts from the source tree.
To accomplish this, the necessary changes would be:
outDir
outDir
(e.g. README.md, LICENSE, etc.)@semantic-release/npm
to have apkgRoot
property that points to the build directory.None of these changes would have any affect on the installation package from NPM from an end-users perspective, so this can be accomplished anytime before or after v5 is published.
Per my discussion with @dpopp07 via slack, I am currently working on making a proof of concept for the repo and will be making a PR sometime in next week or so.
The text was updated successfully, but these errors were encountered: