Modern, scalable tools. Exceptional developer experience.
MIT License
Bot releases are visible (Hide)
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
@ts-ignore
instead since we don't know which @react-native-community/cli
version is usedPublished by github-actions[bot] over 2 years ago
node:
prefix to support Node <14.18Published by github-actions[bot] over 2 years ago
@react-native-community/cli-plugin-metro
>=6.1.0Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
hermes
target"Published by github-actions[bot] over 2 years ago
--tree-shake
is specifiedPublished by github-actions[bot] over 2 years ago
workspace-tools
with @rnx-kit/tools-workspaces
Published by github-actions[bot] over 2 years ago
@rnx-kit/tools-workspaces
, a collection of tools for working with workspaces.Published by github-actions[bot] over 2 years ago
@rnx-kit/tools-workspaces
, a collection of tools for working with workspaces.Published by github-actions[bot] over 2 years ago
workspace-tools
with a call to find-up
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
hermes
target introduced in esbuild 0.14.48.Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
Published by github-actions[bot] over 2 years ago
e2535866: # Breaking Changes
This version transitions from using our own internal bundling wrapper to the
official bundling API in @react-native-community/cli-plugin-metro
, when it is
available.
Our wrapper is a little different than the official code, in that it does not
honor the sourcemapUseAbsolutePath
flag. So this change also adds support for
that flag in our wrapper, making it fully compatible and interchangeable with
the official bundling API.
This is a breaking change because, when sourcemapUseAbsolutePath
is false
,
sourcemapOutput
is stripped of any path info, leaving only the name of the
source-map file.
Published by github-actions[bot] over 2 years ago
e2535866: # Breaking Changes
Add, rename, and remove command-line parameters in @rnx-kit/cli to fully align
with the well-known names used in @react-native-community/cli. This change will
pairs with similar changes in @rnx-kit/config.
In doing this, we'll be making it easier for developers to migrate to using our
config/cli combination, and our cli will become a "drop in" replacement
@react-native-community/cli. The longer-term goal is to upstream our work into
the community CLI, but until it is proven and accepted, we will continue to
maintain our wrapper commands.
rnx-bundle
parametetersAdd:
Remove:
Rename:
rnx-start
parametersRename:
The bundler and bundle-server no longer require rnx-kit configuration to run.
This makes it possible to "upgrade" to @rnx-kit/cli by only changing the command
name:
react-native bundle
-> react-native rnx-bundle
react-native start
-> react-native rnx-start
This release moves configuration defaults from @rnx-kit/config to the CLI. The
CLI expresses our opinionated view of how config should be interpreted.
The following defaults now apply when running rnx-bundle
and rnx-start
:
platform
>.bundle" (Windows,platform
>.jsbundle" (iOS, MacOS)true
(config only)true
(config only)true
(config only)false
false
(bundlingNOTE: Defaults are only used when the corresponding fields are missing from
both configuration and the command-line.
In addition to these defaults, rnx-start
will use bundle
configuration when
server
configuration is not present, ensuring that by default, you are serving
the same way you are bundling. If both both are missing, then the above baseline
defaults are used.
rnx-bundle
: source-map changesThe bundling code used to force the creation of a source-map file when in dev
mode (--dev true). This is inconsistent with how @react-native-community/cli
works, so it has been removed.
Further, rnx-bundle
now supports --sourcemap-use-absolute-path
with a
default value of false
. This aligns with the @react-native-community/cli
behavior, and is a breaking change because it causes sourcemapOutput
to be
stripped of any path info, leaving only the name of the source-map file.
rnx-bundle
parameter --experimental-tree-shakeThis parameters was marked deprecated in a previous release, and though it was
still supported, it emitted a warning when used.
All support has now been dropped. The replacement parameter is --tree-shake
.
Published by github-actions[bot] over 2 years ago
e2535866: # Breaking Changes
Add, rename, and remove properties in @rnx-kit/config to fully align with the
well-known names used in @react-native-community/cli. This change will ripple
outward to @rnx-kit/cli as well.
In doing this, we'll be making it easier for developers to migrate to using our
config/cli combination, and our cli will become a "drop in" replacement
@react-native-community/cli. The longer-term goal is to upstream our work into
the community CLI, but until it is proven and accepted, we will continue to
maintain our wrapper commands.
To assist with this change, we detect the use of old property names, and
report detailed failure messages. This will highlight app config that needs to
be updated (which seems better than silently ignoring it).
Add:
Remove:
Rename:
We no longer search for config in places like rnx-kit.config.js (e.g. no more
cosmiconfig
).
Why this change? In all the places we use rnx-kit internally, no one is
using this mechanism. Further, in external forums, there have been general
complaints from JS devs about having too many config files -- package.json is
the preferred "single source". In light of this, it didn't seem worthwhile to
continue carrying comsmiconfig
as a dependency.
Now takes rnx-kit configuration as input, and outputs a bundle configuration
(which has changed in this release).
No longer provides default values. Returns only what is in configuration.
Defaults have moved into the CLI, which is our opinionated view of how config
should be interpreted.
Drops support for a previously deprecated property experimental_treeShake
,
which has since been replaced with treeShake
.
Now requires a bundle configuration as input, and outputs a platform-specific
bundle configuration.
No longer provides default values. Returns only what is in configuration.
Defaults have moved into the CLI, which is our opinionated view of how config
should be interpreted.
No longer provides default values. Returns only what is in configuration.
Defaults have moved into the CLI, which is our opinionated view of how config
should be interpreted.
Give developers fine-grained control over how TypeScript validation behaves.
Published by github-actions[bot] over 2 years ago
resolveSymlinks
, to findPackageDependencyDir
to make it return fully resolved symlinks