delacour 0.5.0-alpha.20261021133621 → 0.5.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/dist/index.js +6 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10955,7 +10955,7 @@ const exec = x;
|
|
|
10955
10955
|
function channelFor(version) {
|
|
10956
10956
|
return /-alpha\b/.test(version) ? "alpha" : "latest";
|
|
10957
10957
|
}
|
|
10958
|
-
const CLI_CHANNEL = channelFor("0.5.0
|
|
10958
|
+
const CLI_CHANNEL = channelFor("0.5.0");
|
|
10959
10959
|
//#endregion
|
|
10960
10960
|
//#region src/project/package-manager.ts
|
|
10961
10961
|
const ADD = {
|
|
@@ -11843,13 +11843,13 @@ const DEFAULT_REGISTRY_URL = "https://raw.githubusercontent.com/delacournz/delac
|
|
|
11843
11843
|
* Replaced at build time with the git tag being published (see `tsdown.config.ts`).
|
|
11844
11844
|
* `main` in a working tree, where there is no tag yet.
|
|
11845
11845
|
*/
|
|
11846
|
-
const DEFAULT_REGISTRY_REF = "
|
|
11846
|
+
const DEFAULT_REGISTRY_REF = "713984b74d21a6bb6b0e1f719a947cce7a2d847e";
|
|
11847
11847
|
const RAW_GITHUB = "https://raw.githubusercontent.com";
|
|
11848
11848
|
const GITHUB_SHORTHAND = /^github:([^/#]+)\/([^/#]+)(?:#(.+))?$/;
|
|
11849
11849
|
/** `https://raw.githubusercontent.com/owner/repo` and nothing more. */
|
|
11850
11850
|
const BARE_RAW_REPO = new RegExp(`^${RAW_GITHUB}/([^/]+)/([^/]+)$`);
|
|
11851
11851
|
function resolveRegistrySource(options) {
|
|
11852
|
-
const ref = options.ref || "
|
|
11852
|
+
const ref = options.ref || "713984b74d21a6bb6b0e1f719a947cce7a2d847e";
|
|
11853
11853
|
const url = options.url?.trim();
|
|
11854
11854
|
if (!url) return remote(`${DEFAULT_REGISTRY_URL}/${ref}`);
|
|
11855
11855
|
const shorthand = GITHUB_SHORTHAND.exec(url);
|
|
@@ -14561,7 +14561,7 @@ async function add(names, options) {
|
|
|
14561
14561
|
const toWrite = await resolveConflicts(planned, options, output);
|
|
14562
14562
|
if (toWrite === null) return null;
|
|
14563
14563
|
await writeFiles(toWrite);
|
|
14564
|
-
await recordLock(config, planned, toWrite, options.ref || config.registry.ref || "
|
|
14564
|
+
await recordLock(config, planned, toWrite, options.ref || config.registry.ref || "713984b74d21a6bb6b0e1f719a947cce7a2d847e");
|
|
14565
14565
|
report$1(toWrite, planned, requested, output);
|
|
14566
14566
|
const settled = await settleDependencies(items, config, project, options, output);
|
|
14567
14567
|
const testSetup = options.tests ? await checkTestSetup(config, project, output) : [];
|
|
@@ -15867,7 +15867,7 @@ async function promptUntracked(files) {
|
|
|
15867
15867
|
async function readPlan(names, options, output, clients) {
|
|
15868
15868
|
const config = await loadConfig(options.cwd);
|
|
15869
15869
|
const lock = await readLock(config.root);
|
|
15870
|
-
const ref = options.ref || config.registry.ref || "
|
|
15870
|
+
const ref = options.ref || config.registry.ref || "713984b74d21a6bb6b0e1f719a947cce7a2d847e";
|
|
15871
15871
|
const url = options.registry ?? config.registry.url;
|
|
15872
15872
|
const open = (at) => createRegistryClient({
|
|
15873
15873
|
cwd: options.cwd,
|
|
@@ -33134,7 +33134,7 @@ function report(result, output) {
|
|
|
33134
33134
|
if (result.derived.length > 0) output.info(`${result.derived.length} filled in, derived from tokens the theme does define: ${result.derived.map((name) => name.slice(2)).join(", ")}.`);
|
|
33135
33135
|
for (const warning of result.warnings) output.warn(warning);
|
|
33136
33136
|
}
|
|
33137
|
-
const program = new Command().name("delacour").description("Add React Native components to your Expo app. You own the code.").version("0.5.0
|
|
33137
|
+
const program = new Command().name("delacour").description("Add React Native components to your Expo app. You own the code.").version("0.5.0");
|
|
33138
33138
|
/** Shared by every command that reads the registry. */
|
|
33139
33139
|
function withRegistryOptions(command) {
|
|
33140
33140
|
return command.addOption(new Option("--registry <url>", "registry to read from: a URL, github:owner/repo, or a local path")).addOption(new Option("--ref <ref>", "git ref to read the registry at").default(DEFAULT_REGISTRY_REF)).addOption(new Option("--offline", "use only what is already cached")).addOption(new Option("-c, --cwd <path>", "directory to work in").default(process.cwd()));
|