@yahoo/uds-create-cli 5.113.0 → 5.114.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yahoo/uds-create-cli",
3
- "version": "5.113.0",
3
+ "version": "5.114.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -32,10 +32,10 @@
32
32
  "@modelcontextprotocol/sdk": "^1.32.2",
33
33
  "@orpc/client": "^1.13.9",
34
34
  "@orpc/contract": "^1.13.9",
35
- "@yahoo/uds-create-config": "5.113.0",
36
- "@yahoo/uds-create-loader": "5.113.0",
37
- "@yahoo/uds-create-types": "5.113.0",
38
- "@yahoo/uds-create-utils": "5.113.0",
35
+ "@yahoo/uds-create-config": "5.114.0",
36
+ "@yahoo/uds-create-loader": "5.114.0",
37
+ "@yahoo/uds-create-types": "5.114.0",
38
+ "@yahoo/uds-create-utils": "5.114.0",
39
39
  "esbuild": "^0.27.4",
40
40
  "ts-morph": "^27.0.2",
41
41
  "get-tsconfig": "^4.10.0",
@@ -54,11 +54,11 @@
54
54
  },
55
55
  "udsSchemaVersion": 20261118171253,
56
56
  "optionalDependencies": {
57
- "@yahoo/uds-create-cli-darwin-arm64": "5.113.0",
58
- "@yahoo/uds-create-cli-darwin-x64": "5.113.0",
59
- "@yahoo/uds-create-cli-linux-arm64": "5.113.0",
60
- "@yahoo/uds-create-cli-linux-x64": "5.113.0",
61
- "@yahoo/uds-create-cli-linux-arm64-musl": "5.113.0",
62
- "@yahoo/uds-create-cli-linux-x64-musl": "5.113.0"
57
+ "@yahoo/uds-create-cli-darwin-arm64": "5.114.0",
58
+ "@yahoo/uds-create-cli-darwin-x64": "5.114.0",
59
+ "@yahoo/uds-create-cli-linux-arm64": "5.114.0",
60
+ "@yahoo/uds-create-cli-linux-x64": "5.114.0",
61
+ "@yahoo/uds-create-cli-linux-arm64-musl": "5.114.0",
62
+ "@yahoo/uds-create-cli-linux-x64-musl": "5.114.0"
63
63
  }
64
64
  }
@@ -75858,11 +75858,186 @@ function createHostPackageClassifier({
75858
75858
  // ../codegen/src/build/nativeWorklets.ts
75859
75859
  var import_core = __toESM(require_lib27(), 1);
75860
75860
  import path4 from "node:path";
75861
+ import { pathToFileURL } from "node:url";
75861
75862
  import { transform } from "esbuild";
75862
- async function compileNativeWorklets(source, filename) {
75863
+
75864
+ // ../../node_modules/react-native-worklets/package.json with { type: 'json' }
75865
+ var package_default = {
75866
+ name: "react-native-worklets",
75867
+ version: "0.10.1",
75868
+ description: "The React Native multithreading library",
75869
+ keywords: [
75870
+ "react-native",
75871
+ "react",
75872
+ "native",
75873
+ "worklets"
75874
+ ],
75875
+ scripts: {
75876
+ build: "yarn workspace babel-plugin-worklets build && yarn set-version && yarn run --top-level bob build",
75877
+ "circular-dependency-check": "yarn madge --extensions js,jsx --circular lib",
75878
+ "find-unused-code:js": "knip",
75879
+ format: "yarn format:js && yarn format:plugin && yarn format:common && yarn format:android && yarn format:apple",
75880
+ "format:android": "yarn format:android:java && yarn format:android:cpp && yarn format:android:cmake",
75881
+ "format:android:cpp": 'find android/src -iname "*.h" -o -iname "*.cpp" | xargs clang-format -i',
75882
+ "format:android:cmake": "find ./android -type d \\( -name build -o -name .cxx \\) -prune -o -type f -name 'CMakeLists.txt' -print | xargs ../../scripts/format-cmake.sh",
75883
+ "format:android:java": "node ../../scripts/format-java.js",
75884
+ "format:apple": 'find apple -iname "*.h" -o -iname "*.m" -o -iname "*.mm" -o -iname "*.cpp" | xargs clang-format -i',
75885
+ "format:common": 'find Common -iname "*.h" -o -iname "*.cpp" | xargs clang-format -i',
75886
+ "format:js": "yarn run --top-level oxfmt src",
75887
+ "format:plugin": "yarn workspace babel-plugin-worklets format",
75888
+ lint: "yarn lint:js && yarn lint:plugin && yarn lint:android && yarn lint:apple && yarn lint:clang-tidy",
75889
+ "lint:android": "../../scripts/validate-android.sh && ../../scripts/validate-common.sh && ./android/gradlew -p android spotlessCheck -q && yarn format:common --dry-run -Werror && yarn format:android:cpp --dry-run -Werror && yarn lint:cmake",
75890
+ "lint:apple": "../../scripts/validate-apple.sh && ../../scripts/validate-common.sh && yarn format:common --dry-run -Werror && yarn format:apple --dry-run -Werror",
75891
+ "lint:cmake": "find ./android -type d \\( -name build -o -name .cxx \\) -prune -o -type f -name 'CMakeLists.txt' -print | xargs ../../scripts/lint-cmake.sh",
75892
+ "lint:clang-tidy": "yarn lint:clang-tidy:ios && yarn lint:clang-tidy:android",
75893
+ "lint:clang-tidy:ios": "../../scripts/llvm-tools/clang-tidy-lint.sh --platform=ios",
75894
+ "lint:clang-tidy:android": "../../scripts/llvm-tools/clang-tidy-lint.sh --platform=android",
75895
+ "lint:js": "eslint src && yarn run --top-level oxfmt --check src",
75896
+ "lint:plugin": "yarn workspace babel-plugin-worklets lint",
75897
+ prepack: "yarn build",
75898
+ "set-version": "node scripts/set-version.js",
75899
+ test: "jest",
75900
+ "type:check": "yarn type:check:src:native && yarn type:check:src:web && yarn type:check:plugin && yarn type:check:app && yarn type:check:tests",
75901
+ "type:check:src:native": "yarn tsc --noEmit",
75902
+ "type:check:src:web": "yarn tsc --noEmit --project tsconfig.web.json",
75903
+ "type:check:app": "yarn workspace common-app type:check",
75904
+ "type:check:plugin": "yarn workspace babel-plugin-worklets type:check",
75905
+ "type:check:tests": "../../scripts/test-ts.sh __typetests__",
75906
+ "type:check:strict": "yarn type:check:strict:src && yarn type:check:strict:app",
75907
+ "type:check:strict:src": "yarn tsc --noEmit --customConditions react-native-strict-api",
75908
+ "type:check:strict:app": "yarn workspace common-app type:check:strict",
75909
+ "tree-shake:check:web": "yarn is-tree-shakable --resolution web",
75910
+ "validate-peers": "node ../../scripts/validate-compatibility-peer-dependencies.js"
75911
+ },
75912
+ repository: {
75913
+ type: "git",
75914
+ url: "git+https://github.com/software-mansion/react-native-reanimated.git",
75915
+ directory: "packages/react-native-worklets"
75916
+ },
75917
+ license: "MIT",
75918
+ readmeFilename: "README.md",
75919
+ bugs: {
75920
+ url: "https://github.com/software-mansion/react-native-reanimated/issues"
75921
+ },
75922
+ homepage: "https://docs.swmansion.com/react-native-worklets",
75923
+ peerDependencies: {
75924
+ "@babel/core": "*",
75925
+ "@react-native/metro-config": "*",
75926
+ react: "*",
75927
+ "react-native": "0.83 - 0.86"
75928
+ },
75929
+ dependencies: {
75930
+ "@babel/plugin-transform-arrow-functions": "^7.27.1",
75931
+ "@babel/plugin-transform-class-properties": "^7.28.6",
75932
+ "@babel/plugin-transform-classes": "^7.28.6",
75933
+ "@babel/plugin-transform-nullish-coalescing-operator": "^7.28.6",
75934
+ "@babel/plugin-transform-optional-chaining": "^7.28.6",
75935
+ "@babel/plugin-transform-shorthand-properties": "^7.27.1",
75936
+ "@babel/plugin-transform-template-literals": "^7.27.1",
75937
+ "@babel/plugin-transform-unicode-regex": "^7.27.1",
75938
+ "@babel/preset-typescript": "^7.28.5",
75939
+ "@babel/types": "^7.27.1",
75940
+ "convert-source-map": "^2.0.0",
75941
+ semver: "^7.7.4"
75942
+ },
75943
+ devDependencies: {
75944
+ "@babel/cli": "7.28.3",
75945
+ "@babel/core": "7.28.4",
75946
+ "@react-native-community/cli": "20.1.0",
75947
+ "@react-native/eslint-config": "0.83.0",
75948
+ "@react-native/jest-preset": "patch:@react-native/jest-preset@npm%3A0.85.2#~/.yarn/patches/@react-native-jest-preset-npm-0.85.2-d3275e8971.patch",
75949
+ "@types/jest": "30.0.0",
75950
+ "@types/node": "24.7.0",
75951
+ "@types/react": "19.2.2",
75952
+ "clang-format-node": "1.3.5",
75953
+ "code-tag": "1.2.0",
75954
+ eslint: "9.37.0",
75955
+ "is-tree-shakable": "0.5.0",
75956
+ jest: "30.2.0",
75957
+ knip: "5.61.3",
75958
+ madge: "8.0.0",
75959
+ react: "19.2.3",
75960
+ "react-native": "0.85.2",
75961
+ typescript: "5.9.3"
75962
+ },
75963
+ main: "./lib/module/index",
75964
+ module: "./lib/module/index",
75965
+ "react-native": "./src/index",
75966
+ source: "./src/index",
75967
+ types: "lib/typescript/index.d.ts",
75968
+ files: [
75969
+ "src",
75970
+ "lib",
75971
+ "android",
75972
+ "apple",
75973
+ "Common",
75974
+ "compatibility.json",
75975
+ "bundleMode/index.js",
75976
+ "bundleMode/index.d.ts",
75977
+ "bundleMode/shims/*.js",
75978
+ "scripts/worklets_utils.rb",
75979
+ "scripts/validate-react-native-version.js",
75980
+ "jest",
75981
+ "plugin/index.js",
75982
+ "plugin/index.d.ts",
75983
+ "*.podspec",
75984
+ "react-native.config.js",
75985
+ "!apple/build",
75986
+ "!android/build",
75987
+ "!android/gradle",
75988
+ "!android/gradlew",
75989
+ "!android/gradlew.bat",
75990
+ "!android/local.properties",
75991
+ "!.worklets",
75992
+ ".worklets/dummy.md",
75993
+ "!**/__tests__",
75994
+ "!**/__fixtures__",
75995
+ "!**/__mocks__",
75996
+ "!**/.*"
75997
+ ],
75998
+ sideEffects: [
75999
+ "./src/index.ts",
76000
+ "./lib/module/index.js",
76001
+ "./**/runtimeKind.{js,ts}",
76002
+ "./**/serializable.native.{js,ts}",
76003
+ "./**/initializers.native.{js,ts}",
76004
+ "./**/featureFlags.native.{js,ts}"
76005
+ ],
76006
+ codegenConfig: {
76007
+ name: "rnworklets",
76008
+ type: "modules",
76009
+ jsSrcsDir: "src/specs",
76010
+ android: {
76011
+ javaPackageName: "com.swmansion.worklets"
76012
+ }
76013
+ }
76014
+ };
76015
+
76016
+ // ../codegen/src/build/nativeWorklets.ts
76017
+ function workletsCompiler(resolveDir = process.cwd()) {
76018
+ const installed = resolveInstalledPackage(
76019
+ resolveDir,
76020
+ "react-native-worklets"
76021
+ );
76022
+ if (installed && !installed.version) {
76023
+ throw new Error(
76024
+ `[uds] Cannot determine the Worklets compiler version in ${installed.dir}.`
76025
+ );
76026
+ }
76027
+ return {
76028
+ dir: installed?.dir,
76029
+ version: installed?.version ?? package_default.version
76030
+ };
76031
+ }
76032
+ async function compileNativeWorklets({
76033
+ source,
76034
+ filename,
76035
+ resolveDir
76036
+ }) {
75863
76037
  if (!/react-native-(?:reanimated|worklets)|["']worklet["']/.test(source))
75864
76038
  return source;
75865
- const { default: workletsPlugin } = await Promise.resolve().then(() => __toESM(require_plugin2(), 1));
76039
+ const compiler = workletsCompiler(resolveDir);
76040
+ const { default: workletsPlugin } = compiler.dir && compiler.version !== package_default.version ? await import(pathToFileURL(path4.join(compiler.dir, "plugin/index.js")).href) : await Promise.resolve().then(() => __toESM(require_plugin2(), 1));
75866
76041
  const javascript = await transform(source, {
75867
76042
  loader: filename.endsWith(".ts") ? "ts" : "tsx",
75868
76043
  jsx: "automatic",
@@ -76038,7 +76213,11 @@ function virtualEntryPlugin(options) {
76038
76213
  const source = virtualModules[args.path];
76039
76214
  if (source !== void 0) {
76040
76215
  return {
76041
- contents: platform === "native" ? await compileNativeWorklets(source, `${args.path}.tsx`) : source,
76216
+ contents: platform === "native" ? await compileNativeWorklets({
76217
+ source,
76218
+ filename: `${args.path}.tsx`,
76219
+ resolveDir
76220
+ }) : source,
76042
76221
  loader: "tsx",
76043
76222
  resolveDir
76044
76223
  };
@@ -76048,7 +76227,12 @@ function virtualEntryPlugin(options) {
76048
76227
  }
76049
76228
  };
76050
76229
  }
76051
- function udsLoaderPlugin(config, runTransform, platform = "web") {
76230
+ function udsLoaderPlugin({
76231
+ config,
76232
+ runTransform,
76233
+ platform = "web",
76234
+ resolveDir
76235
+ }) {
76052
76236
  return {
76053
76237
  name: "uds-loader",
76054
76238
  setup(build) {
@@ -76060,7 +76244,11 @@ function udsLoaderPlugin(config, runTransform, platform = "web") {
76060
76244
  return { contents: source, loader };
76061
76245
  }
76062
76246
  const finish = async (contents) => ({
76063
- contents: platform === "native" ? await compileNativeWorklets(contents, args.path) : contents,
76247
+ contents: platform === "native" ? await compileNativeWorklets({
76248
+ source: contents,
76249
+ filename: args.path,
76250
+ resolveDir
76251
+ }) : contents,
76064
76252
  loader
76065
76253
  });
76066
76254
  if (!runTransform || !config) return finish(source);
@@ -76516,7 +76704,12 @@ async function buildPreviewBundleWithLogLevel(options, logLevel) {
76516
76704
  ...urlExternals && urlExternals.size > 0 ? [urlExternalsPlugin(urlExternals)] : [],
76517
76705
  sourceResolverPlugin(resolveDir),
76518
76706
  cssIgnorePlugin(),
76519
- udsLoaderPlugin(config, runLoaderTransform, platform),
76707
+ udsLoaderPlugin({
76708
+ config,
76709
+ runTransform: runLoaderTransform,
76710
+ platform,
76711
+ resolveDir
76712
+ }),
76520
76713
  ...selfContained ? [
76521
76714
  selfContainedPlugin({
76522
76715
  resolveDir,
@@ -76765,7 +76958,7 @@ async function buildIsolatedPreviewBundle(options, instrumentation) {
76765
76958
  }),
76766
76959
  sourceResolverPlugin(resolveDir),
76767
76960
  cssIgnorePlugin(),
76768
- udsLoaderPlugin(config, runLoaderTransform),
76961
+ udsLoaderPlugin({ config, runTransform: runLoaderTransform }),
76769
76962
  sharedDepsPlugin({ platform: "native-canvas", hostModules })
76770
76963
  ]
76771
76964
  });