Control `pathSuffix` option via configuration file(s)
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 25/100
- Type d'issue
- Fonctionnalité
- Clarté
- À clarifier
- Activité
- À l'abandon
- Stack technique
- babel, node.js, react-native, typescript
- Domaine
- build-system, mobile-dev, tooling
Piste de recherche
Aucun fichier source ni test n’est nommé. Commencez par retracer la manière dont pathSuffix est transmis au plugin Babel et à la CLI du package hôte, notamment NODE_API_PATH_SUFFIX lors de pod install ou de la compilation Gradle, tout en examinant l’impact possible de pull request 104. Le travail est terminé lorsqu’une configuration à l’échelle de l’application ou par bibliothèque contrôle l’option de manière cohérente, sans paramètres d’exécution distincts.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
We're performing a transformation of the Node-API addon dynamic library paths on disk to their dynamic library names as they're linked into the host package.
Here's the documentation for the pathSuffix option of the NamingStrategy:
Controls how the path of the addon inside a package is transformed into a library name.
The transformation is needed to disambiguate and avoid conflicts between addons with the same name (but in different sub-paths or packages).As an example, if the package name is
my-pkgand the path of the addon within the package isbuild/Release/my-addon.node:
"omit": Only the package name is used and the library name will bemy-pkg."strip": Path gets stripped to its basename and the library name will bemy-pkg--my-addon."keep": The full path is kept and the library name will bemy-pkg--build-Release-my-addon.
In the current state, this pathSuffix option is passed to the babel plugin as well as to the host package's CLI (either through a CLI runtime option or more likely the NODE_API_PATH_SUFFIX environment variable while running pod install or the Gradle build) and they need to match for the app to find the dynamic library files at runtime.
It would be more flexible and less brittle if ☝ was instead determined by
- a single app-wide configuration setting, either in configuration file (or a key in the App's package.json) and / or
- by individual per-library configuration files (or a key in their package.json files)
[!NOTE]
This will likely all change once https://github.com/callstackincubator/react-native-node-api/pull/104 merge.
- Langage dominant
- TypeScript
- Étoiles
- 188
- Forks
- 10
- Merge moyen
- 2 j 17 h
- PR mergées (30 j)
- 3
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de callstackincubator/react-native-node-api
-
Android 🤖
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
-
Sanity check of Hermes source directory via environment variable, when building Android projects OuverteAndroid 🤖 good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
callstackincubator/react-native-node-api#163 · 1 commentaire ·
-
enhancement good first issue gyp-to-cmake
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
callstackincubator/react-native-node-api#161 · 3 commentaires · 1 réaction ·
-
enhancement Host 🏡
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
-
Automatable good first issue
Difficulté 3/5 1-2 jours Accessibilité débutants 15/100
callstackincubator/react-native-node-api#424 · 1 commentaire ·
Toutes les issues de callstackincubator/react-native-node-api
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
mksglu/context-mode#1200 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
anthropics/claude-code#96687 ·
-
good first issue
Difficulté 1/5 Moins d'une heure Accessibilité débutants 95/100
AOSSIE-Org/DebateAI#582 · 2 commentaires ·