-
-
Notifications
You must be signed in to change notification settings - Fork 390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JavaScriptLib Restructure #4647
Conversation
- allow use of `package` RootModule with TscModule - allow use of relative paths - add esm support; use swc-core for compiling
# Conflicts: # javascriptlib/src/mill/javascriptlib/PublishModule.scala # javascriptlib/src/mill/javascriptlib/TestModule.scala # javascriptlib/src/mill/javascriptlib/TypeScriptModule.scala
- basic/3-custom-build-logic - testing/1-test-suite(bar/baz)
causes `Writing to "destination" not allowed during execution phase` error when running jslib tests.
2693a4a
to
9cb0233
Compare
@monyedavid I think let's wait a few days for #4645 to land before we come back to this; that PR aims to solve a lot of the |
Fixed the problems in this pr @lihaoyi |
@monyedavid I've said this before, but can you write a proper explanation in the PR description of the changes this PR does and why they are necessary? I do not want to have to reverse engineer your intentions from reading the code, likely getting it wrong, and causing unnecessary confusion and misunderstandings |
website/docs/modules/ROOT/pages/extending/example-typescript-support.adoc
Outdated
Show resolved
Hide resolved
I think this looks good, thanks @monyedavid |
The goal of the pr is to allow existing Ts projects run with mill, it takes into considerations the fluidity of Ts project structure and removes the reliance on
ts-paths
as the only means to accessmodule
dependencies.This pr refactors
TscModule
formerly (TypeScriptModule
), it aims to introduce the features:package
RootModule with TscModuleKey changes:
compile
task has been modified, these modifications:RootModule
use, the top level src feature now works along sideTscModule
PublishModule
has been significantly altered asTscModule
compilations output now prepares source files internal and external (source files generated via a task that would end up in theout/
) in a manner that nodesnpm
publishing tool will understand and work with.TscModule
to violate the newwriting to path during execution phase
restrictions. As the previous implementation would require files (mostly test config files and build scripts) to be created within or moved tocompile.dest
during execution phases.Additional examples
module/7-root-module
for RootModulebase pr for #4425 @lihaoyi