@intentius/chant 0.124.99 → 0.124.101
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/bin/chant +3 -3
- package/dist/action-pins.d.ts +2 -0
- package/dist/action-pins.js +3 -0
- package/dist/ci-detect.d.ts +13 -0
- package/dist/ci-detect.js +12 -0
- package/dist/ci-system.d.ts +66 -0
- package/dist/ci-system.js +61 -0
- package/dist/cli/commands/carve-emit.js +2 -2
- package/dist/cli/commands/check-lexicon-plugin.d.ts +2 -2
- package/dist/cli/commands/check-lexicon-plugin.js +3 -3
- package/dist/cli/commands/check-lexicon.js +4 -4
- package/dist/cli/commands/init-lexicon/templates/project.d.ts +1 -1
- package/dist/cli/commands/init-lexicon/templates/project.js +4 -4
- package/dist/cli/commands/init.d.ts +13 -0
- package/dist/cli/commands/init.js +30 -2
- package/dist/cli/handlers/build.js +27 -0
- package/dist/cli/handlers/release-doctor.d.ts +12 -0
- package/dist/cli/handlers/release-doctor.js +118 -0
- package/dist/cli/handlers/release-init.d.ts +10 -0
- package/dist/cli/handlers/release-init.js +342 -0
- package/dist/cli/handlers/release.d.ts +50 -1
- package/dist/cli/handlers/release.js +688 -30
- package/dist/cli/handlers/run-generate.js +11 -0
- package/dist/cli/main.d.ts +2 -0
- package/dist/cli/main.js +45 -97
- package/dist/cli/parse-args.js +55 -0
- package/dist/cli/registry.d.ts +18 -0
- package/dist/cli/release-commands/artifacts.d.ts +3 -0
- package/dist/cli/release-commands/artifacts.js +14 -0
- package/dist/cli/release-commands/candidates.d.ts +3 -0
- package/dist/cli/release-commands/candidates.js +16 -0
- package/dist/cli/release-commands/changed.d.ts +3 -0
- package/dist/cli/release-commands/changed.js +14 -0
- package/dist/cli/release-commands/compose.d.ts +3 -0
- package/dist/cli/release-commands/compose.js +16 -0
- package/dist/cli/release-commands/cut.d.ts +3 -0
- package/dist/cli/release-commands/cut.js +49 -0
- package/dist/cli/release-commands/doctor.d.ts +3 -0
- package/dist/cli/release-commands/doctor.js +14 -0
- package/dist/cli/release-commands/export.d.ts +3 -0
- package/dist/cli/release-commands/export.js +12 -0
- package/dist/cli/release-commands/images.d.ts +3 -0
- package/dist/cli/release-commands/images.js +13 -0
- package/dist/cli/release-commands/index.d.ts +8 -0
- package/dist/cli/release-commands/index.js +52 -0
- package/dist/cli/release-commands/init.d.ts +3 -0
- package/dist/cli/release-commands/init.js +16 -0
- package/dist/cli/release-commands/list.d.ts +3 -0
- package/dist/cli/release-commands/list.js +10 -0
- package/dist/cli/release-commands/next.d.ts +3 -0
- package/dist/cli/release-commands/next.js +13 -0
- package/dist/cli/release-commands/publish.d.ts +3 -0
- package/dist/cli/release-commands/publish.js +22 -0
- package/dist/cli/release-commands/stamp.d.ts +3 -0
- package/dist/cli/release-commands/stamp.js +15 -0
- package/dist/cli/release-commands/status.d.ts +3 -0
- package/dist/cli/release-commands/status.js +17 -0
- package/dist/cli/release-commands/tag.d.ts +3 -0
- package/dist/cli/release-commands/tag.js +12 -0
- package/dist/cli/release-commands/types.d.ts +20 -0
- package/dist/cli/release-commands/types.js +1 -0
- package/dist/cli/release-commands/verify.d.ts +3 -0
- package/dist/cli/release-commands/verify.js +15 -0
- package/dist/cli/release-commands/workflow.d.ts +3 -0
- package/dist/cli/release-commands/workflow.js +13 -0
- package/dist/codegen/pinned-upgrade.js +1 -1
- package/dist/components/capability-plugin.d.ts +1 -1
- package/dist/components/capability-plugin.js +1 -1
- package/dist/components/cli-support.d.ts +1 -1
- package/dist/components/cli-support.js +1 -1
- package/dist/config-environments.d.ts +8 -1
- package/dist/config-environments.js +2 -0
- package/dist/config.d.ts +299 -6
- package/dist/config.js +102 -5
- package/dist/dead-guards.d.ts +5 -1
- package/dist/dead-guards.js +34 -23
- package/dist/discovery/sandbox/driver.js +1 -1
- package/dist/discovery/specifier-resolve.js +1 -1
- package/dist/floor-table.d.ts +3 -1
- package/dist/floor-table.data.js +23 -3
- package/dist/floor-table.js +4 -3
- package/dist/forge-remote.d.ts +13 -0
- package/dist/forge-remote.js +15 -0
- package/dist/lexicon.d.ts +41 -2
- package/dist/lifecycle/__fixtures__/publish-fakes.d.ts +62 -0
- package/dist/lifecycle/__fixtures__/publish-fakes.js +270 -3
- package/dist/lifecycle/publish-attachments.d.ts +2 -1
- package/dist/lifecycle/publish-attachments.js +19 -2
- package/dist/lifecycle/publish-cargo.d.ts +99 -0
- package/dist/lifecycle/publish-cargo.js +412 -0
- package/dist/lifecycle/publish-credentials.d.ts +1 -1
- package/dist/lifecycle/publish-credentials.js +8 -0
- package/dist/lifecycle/publish-declaration.d.ts +199 -4
- package/dist/lifecycle/publish-declaration.js +200 -9
- package/dist/lifecycle/publish-forge.d.ts +45 -2
- package/dist/lifecycle/publish-forge.js +434 -34
- package/dist/lifecycle/publish-git-ssh.d.ts +15 -0
- package/dist/lifecycle/publish-git-ssh.js +30 -4
- package/dist/lifecycle/publish-github.d.ts +40 -2
- package/dist/lifecycle/publish-github.js +100 -3
- package/dist/lifecycle/publish-homebrew.d.ts +7 -9
- package/dist/lifecycle/publish-homebrew.js +34 -197
- package/dist/lifecycle/publish-index.d.ts +141 -0
- package/dist/lifecycle/publish-index.js +719 -0
- package/dist/lifecycle/publish-marketplace.js +77 -0
- package/dist/lifecycle/publish-mcp-registry.d.ts +66 -0
- package/dist/lifecycle/publish-mcp-registry.js +306 -0
- package/dist/lifecycle/publish-npm.js +165 -2
- package/dist/lifecycle/publish-oci.d.ts +34 -1
- package/dist/lifecycle/publish-oci.js +246 -7
- package/dist/lifecycle/publish-pypi.d.ts +136 -0
- package/dist/lifecycle/publish-pypi.js +657 -0
- package/dist/lifecycle/publish-record.d.ts +6 -3
- package/dist/lifecycle/publish-record.js +6 -3
- package/dist/lifecycle/publish-signing.d.ts +147 -0
- package/dist/lifecycle/publish-signing.js +257 -0
- package/dist/lifecycle/publish-targets.d.ts +27 -1
- package/dist/lifecycle/publish-targets.js +80 -0
- package/dist/lifecycle/publish-tauri.js +43 -0
- package/dist/lifecycle/publish-train-names.d.ts +54 -0
- package/dist/lifecycle/publish-train-names.js +118 -0
- package/dist/lifecycle/publish-verify.d.ts +121 -0
- package/dist/lifecycle/publish-verify.js +130 -0
- package/dist/lifecycle/query.js +8 -0
- package/dist/lifecycle/release-artifacts.d.ts +212 -0
- package/dist/lifecycle/release-artifacts.js +571 -0
- package/dist/lifecycle/release-changelog.d.ts +13 -1
- package/dist/lifecycle/release-changelog.js +35 -2
- package/dist/lifecycle/release-cut.d.ts +58 -3
- package/dist/lifecycle/release-cut.js +132 -34
- package/dist/lifecycle/release-doctor.d.ts +113 -0
- package/dist/lifecycle/release-doctor.js +996 -0
- package/dist/lifecycle/release-green.d.ts +86 -0
- package/dist/lifecycle/release-green.js +286 -0
- package/dist/lifecycle/release-init.d.ts +255 -0
- package/dist/lifecycle/release-init.js +859 -0
- package/dist/lifecycle/release-intents.d.ts +73 -0
- package/dist/lifecycle/release-intents.js +128 -0
- package/dist/lifecycle/release-next.d.ts +111 -0
- package/dist/lifecycle/release-next.js +252 -0
- package/dist/lifecycle/release-prerelease.d.ts +19 -0
- package/dist/lifecycle/release-prerelease.js +30 -0
- package/dist/lifecycle/release-publish.d.ts +256 -10
- package/dist/lifecycle/release-publish.js +246 -34
- package/dist/lifecycle/release-status-change.d.ts +226 -0
- package/dist/lifecycle/release-status-change.js +478 -0
- package/dist/lifecycle/release-status.d.ts +11 -0
- package/dist/lifecycle/release-status.js +1 -1
- package/dist/lifecycle/release-store.d.ts +73 -2
- package/dist/lifecycle/release-store.js +32 -1
- package/dist/lifecycle/release-tag.d.ts +142 -0
- package/dist/lifecycle/release-tag.js +323 -0
- package/dist/lifecycle/release-verify.d.ts +73 -1
- package/dist/lifecycle/release-verify.js +117 -2
- package/dist/lifecycle/release-version-formats.d.ts +73 -0
- package/dist/lifecycle/release-version-formats.js +570 -0
- package/dist/lifecycle/release-version.d.ts +58 -10
- package/dist/lifecycle/release-version.js +164 -36
- package/dist/lifecycle/release-workstation.d.ts +3 -2
- package/dist/lifecycle/release-workstation.js +3 -2
- package/dist/module-source.d.ts +2 -2
- package/dist/module-source.js +8 -8
- package/dist/op/generate-pipeline.js +1 -1
- package/dist/pr-forge-base.js +4 -2
- package/dist/pr-forge.d.ts +20 -2
- package/dist/pr-forge.js +46 -10
- package/dist/release-floors.d.ts +10 -1
- package/dist/release-floors.js +10 -1
- package/dist/tool-pins.d.ts +38 -0
- package/dist/tool-pins.js +54 -0
- package/dist/ts-loader.d.ts +1 -1
- package/dist/ts-loader.js +6 -6
- package/dist/wave-runtime.mjs +337 -334
- package/dist/workspace/ci-forge.d.ts +17 -0
- package/dist/workspace/ci-forge.js +17 -0
- package/dist/workspace/ci-init.js +1 -1
- package/dist/workspace/composites.schema.json +1 -0
- package/dist/workspace/declaration.d.ts +8 -0
- package/dist/workspace/declaration.js +12 -0
- package/dist/workspace/declaration.schema.json +8 -0
- package/dist/workspace/environments.d.ts +2 -0
- package/dist/workspace/environments.js +1 -1
- package/dist/workspace/identity-gate-rule.d.ts +61 -5
- package/dist/workspace/identity-gate-rule.js +81 -12
- package/dist/workspace/member-pipeline.d.ts +2 -1
- package/dist/workspace/member-pipeline.js +5 -2
- package/dist/workspace/reason-codes.d.ts +6 -0
- package/dist/workspace/reason-codes.js +8 -1
- package/dist/workspace/release-changed.d.ts +179 -0
- package/dist/workspace/release-changed.js +625 -0
- package/dist/workspace/release-changed.schema.json +206 -0
- package/dist/workspace/release-steps/artifacts.d.ts +7 -0
- package/dist/workspace/release-steps/artifacts.js +45 -0
- package/dist/workspace/release-steps/builds.d.ts +12 -0
- package/dist/workspace/release-steps/builds.js +38 -0
- package/dist/workspace/release-steps/doctor.d.ts +8 -0
- package/dist/workspace/release-steps/doctor.js +14 -0
- package/dist/workspace/release-steps/goreleaser.d.ts +16 -0
- package/dist/workspace/release-steps/goreleaser.js +36 -0
- package/dist/workspace/release-steps/green.d.ts +3 -0
- package/dist/workspace/release-steps/green.js +6 -0
- package/dist/workspace/release-steps/images.d.ts +22 -0
- package/dist/workspace/release-steps/images.js +59 -0
- package/dist/workspace/release-steps/index.d.ts +9 -0
- package/dist/workspace/release-steps/index.js +46 -0
- package/dist/workspace/release-steps/pypi.d.ts +15 -0
- package/dist/workspace/release-steps/pypi.js +21 -0
- package/dist/workspace/release-steps/qemu.d.ts +21 -0
- package/dist/workspace/release-steps/qemu.js +35 -0
- package/dist/workspace/release-steps/signing.d.ts +18 -0
- package/dist/workspace/release-steps/signing.js +30 -0
- package/dist/workspace/release-steps/stamp.d.ts +3 -0
- package/dist/workspace/release-steps/stamp.js +4 -0
- package/dist/workspace/release-steps/targets.d.ts +31 -0
- package/dist/workspace/release-steps/targets.js +40 -0
- package/dist/workspace/release-steps/types.d.ts +104 -0
- package/dist/workspace/release-steps/types.js +2 -0
- package/dist/workspace/release-steps/verify.d.ts +3 -0
- package/dist/workspace/release-steps/verify.js +4 -0
- package/dist/workspace/release-toolchains.d.ts +59 -0
- package/dist/workspace/release-toolchains.js +133 -0
- package/dist/workspace/release-train-workflow.d.ts +29 -0
- package/dist/workspace/release-train-workflow.js +85 -0
- package/dist/workspace/release-train.d.ts +3 -1
- package/dist/workspace/release-train.js +20 -3
- package/dist/workspace/release-workflow.d.ts +160 -61
- package/dist/workspace/release-workflow.js +539 -193
- package/dist/workspace/releases.schema.json +70 -1
- package/dist/workspace/search-contract.d.ts +1 -1
- package/dist/workspace/security.js +9 -2
- package/dist/workspace/train-cut.d.ts +182 -0
- package/dist/workspace/train-cut.js +482 -0
- package/dist/workspace/train-prepare.d.ts +61 -0
- package/dist/workspace/train-prepare.js +267 -0
- package/dist/workspace/train-publish.d.ts +177 -0
- package/dist/workspace/train-publish.js +575 -0
- package/dist/workspace/train-range-labels.d.ts +33 -0
- package/dist/workspace/train-range-labels.js +109 -0
- package/dist/workspace/trust/seal.d.ts +13 -3
- package/dist/workspace/trust/seal.js +14 -4
- package/dist/workspace/work-cli.d.ts +3 -2
- package/dist/workspace/work-cli.js +3 -2
- package/dist/workspace/workspace-ledger.d.ts +14 -1
- package/dist/workspace/workspace-ledger.js +33 -7
- package/package.json +26 -26
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The command-line tools the workflows chant generates download, each pinned
|
|
3
|
+
* by the SHA-256 of its release file for every platform a job runs on, as
|
|
4
|
+
* {@link ./image-pins.ts} pins images by digest and ../action-pins.ts pins
|
|
5
|
+
* actions by commit. A generated step downloads the file, checks it against
|
|
6
|
+
* the digest and refuses to run anything else, so a moved release asset
|
|
7
|
+
* fails the job instead of running. Each row names the release it was read
|
|
8
|
+
* from, so an update is one change here.
|
|
9
|
+
*
|
|
10
|
+
* Refresh a row from the release's checksums file:
|
|
11
|
+
*
|
|
12
|
+
* curl -sL https://github.com/sigstore/cosign/releases/download/v3.1.4/cosign_checksums.txt | grep -E 'cosign-linux-(amd64|arm64)$'
|
|
13
|
+
* gh release download v2.19.0 -R goreleaser/goreleaser -p checksums.txt -O - | grep -E 'goreleaser_Linux_(x86_64|arm64)\.tar\.gz$'
|
|
14
|
+
*/
|
|
15
|
+
export interface ToolPin {
|
|
16
|
+
/** The tool's name: the binary the step leaves in its directory. */
|
|
17
|
+
readonly name: string;
|
|
18
|
+
/** The release the row was read from, such as `v3.1.4`. */
|
|
19
|
+
readonly version: string;
|
|
20
|
+
/** Set when each platform's file is a `.tar.gz` that holds the binary, rather than the binary itself. */
|
|
21
|
+
readonly archive?: boolean;
|
|
22
|
+
/** Each platform's download URL and the SHA-256 of the file, as hex. */
|
|
23
|
+
readonly platforms: Readonly<Record<string, {
|
|
24
|
+
readonly url: string;
|
|
25
|
+
readonly sha256: string;
|
|
26
|
+
}>>;
|
|
27
|
+
}
|
|
28
|
+
export declare const TOOL_PINS: {
|
|
29
|
+
readonly cosign: ToolPin;
|
|
30
|
+
readonly goreleaser: ToolPin;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Shell that downloads `pin` for `platform` into `dir`, checks its SHA-256
|
|
34
|
+
* and leaves the executable `<dir>/<name>`: made executable, or unpacked
|
|
35
|
+
* from the archive. It fails, and so fails the step, when the file is not
|
|
36
|
+
* the pinned one. Throws for a platform the row has no file for.
|
|
37
|
+
*/
|
|
38
|
+
export declare function toolInstallLine(pin: ToolPin, platform: string, dir: string): string;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The command-line tools the workflows chant generates download, each pinned
|
|
3
|
+
* by the SHA-256 of its release file for every platform a job runs on, as
|
|
4
|
+
* {@link ./image-pins.ts} pins images by digest and ../action-pins.ts pins
|
|
5
|
+
* actions by commit. A generated step downloads the file, checks it against
|
|
6
|
+
* the digest and refuses to run anything else, so a moved release asset
|
|
7
|
+
* fails the job instead of running. Each row names the release it was read
|
|
8
|
+
* from, so an update is one change here.
|
|
9
|
+
*
|
|
10
|
+
* Refresh a row from the release's checksums file:
|
|
11
|
+
*
|
|
12
|
+
* curl -sL https://github.com/sigstore/cosign/releases/download/v3.1.4/cosign_checksums.txt | grep -E 'cosign-linux-(amd64|arm64)$'
|
|
13
|
+
* gh release download v2.19.0 -R goreleaser/goreleaser -p checksums.txt -O - | grep -E 'goreleaser_Linux_(x86_64|arm64)\.tar\.gz$'
|
|
14
|
+
*/
|
|
15
|
+
const cosign = (version, sums) => ({
|
|
16
|
+
name: "cosign",
|
|
17
|
+
version,
|
|
18
|
+
platforms: Object.fromEntries(Object.entries(sums).map(([platform, sha256]) => [platform, { url: `https://github.com/sigstore/cosign/releases/download/${version}/cosign-${platform.replace("/", "-")}`, sha256 }])),
|
|
19
|
+
});
|
|
20
|
+
const goreleaser = (version, sums) => ({
|
|
21
|
+
name: "goreleaser",
|
|
22
|
+
version,
|
|
23
|
+
archive: true,
|
|
24
|
+
platforms: Object.fromEntries(Object.entries(sums).map(([platform, [asset, sha256]]) => [platform, { url: `https://github.com/goreleaser/goreleaser/releases/download/${version}/${asset}`, sha256 }])),
|
|
25
|
+
});
|
|
26
|
+
export const TOOL_PINS = {
|
|
27
|
+
// #5164: Sigstore signing at publish. v3.1.4 was released 2026-10-20; the sums are its cosign_checksums.txt's.
|
|
28
|
+
cosign: cosign("v3.1.4", {
|
|
29
|
+
"linux/amd64": "424e2c97d0b45fd7a6b608a87f090f35633f4c23ece5f092d48bba11aaf4bbfa",
|
|
30
|
+
"linux/arm64": "ade83b7aac62e131cacfe96d958948b2150cc9efec46a570a2649b8e27dedad2",
|
|
31
|
+
}),
|
|
32
|
+
// #5151: release.artifacts entries goreleaser builds. v2.19.0 was released 2026-10-22; the sums are its checksums.txt's.
|
|
33
|
+
goreleaser: goreleaser("v2.19.0", {
|
|
34
|
+
"linux/amd64": ["goreleaser_Linux_x86_64.tar.gz", "ebc3194ad1d1b1787614405285a0039665cd4c5bd3305215a1b201600f90630b"],
|
|
35
|
+
"linux/arm64": ["goreleaser_Linux_arm64.tar.gz", "ef33741b684c9f62d6a21e7a3c8b051f139ea7b1d301693b67cc819c46226d53"],
|
|
36
|
+
}),
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Shell that downloads `pin` for `platform` into `dir`, checks its SHA-256
|
|
40
|
+
* and leaves the executable `<dir>/<name>`: made executable, or unpacked
|
|
41
|
+
* from the archive. It fails, and so fails the step, when the file is not
|
|
42
|
+
* the pinned one. Throws for a platform the row has no file for.
|
|
43
|
+
*/
|
|
44
|
+
export function toolInstallLine(pin, platform, dir) {
|
|
45
|
+
const file = pin.platforms[platform];
|
|
46
|
+
if (!file)
|
|
47
|
+
throw new Error(`${pin.name} ${pin.version} is pinned for ${Object.keys(pin.platforms).join(", ")}, not ${platform}`);
|
|
48
|
+
if (pin.archive) {
|
|
49
|
+
const tgz = `${dir}/${pin.name}.tar.gz`;
|
|
50
|
+
return `mkdir -p "${dir}" && curl -fsSL -o "${tgz}" ${file.url} && echo "${file.sha256} ${tgz}" | sha256sum -c - && tar -xzf "${tgz}" -C "${dir}" ${pin.name}`;
|
|
51
|
+
}
|
|
52
|
+
const path = `${dir}/${pin.name}`;
|
|
53
|
+
return `curl -fsSL -o "${path}" ${file.url} && echo "${file.sha256} ${path}" | sha256sum -c - && chmod +x "${path}"`;
|
|
54
|
+
}
|
package/dist/ts-loader.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export declare function installCompiledCli(): void;
|
|
|
36
36
|
*/
|
|
37
37
|
export declare function lexiconCompiledTwin(url: string): string | undefined;
|
|
38
38
|
/**
|
|
39
|
-
* #3981 — the `
|
|
39
|
+
* #3981 — the `@intentius/chant-source` target a chant package's `exports` give
|
|
40
40
|
* `specifier`, found from `parentPath`'s directory up through each
|
|
41
41
|
* `node_modules`, or `undefined` when there is none or its file does not
|
|
42
42
|
* exist. Reads exact keys and single-`*` patterns, the shapes chant's
|
package/dist/ts-loader.js
CHANGED
|
@@ -130,7 +130,7 @@ export function lexiconCompiledTwin(url) {
|
|
|
130
130
|
}
|
|
131
131
|
const SOURCE_RESOLUTION = Symbol.for("chant.sourceResolution");
|
|
132
132
|
/**
|
|
133
|
-
* #3981 — the `
|
|
133
|
+
* #3981 — the `@intentius/chant-source` target a chant package's `exports` give
|
|
134
134
|
* `specifier`, found from `parentPath`'s directory up through each
|
|
135
135
|
* `node_modules`, or `undefined` when there is none or its file does not
|
|
136
136
|
* exist. Reads exact keys and single-`*` patterns, the shapes chant's
|
|
@@ -173,10 +173,10 @@ export function chantPackageSourceTarget(specifier, parentPath) {
|
|
|
173
173
|
star = subpath.slice(prefix.length, subpath.length - suffix.length);
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
const
|
|
177
|
-
if (typeof
|
|
176
|
+
const sourceTarget = entry && typeof entry === "object" ? entry["@intentius/chant-source"] : undefined;
|
|
177
|
+
if (typeof sourceTarget !== "string")
|
|
178
178
|
return undefined;
|
|
179
|
-
const target = join(pkgDir, star === undefined ?
|
|
179
|
+
const target = join(pkgDir, star === undefined ? sourceTarget : sourceTarget.split("*").join(star));
|
|
180
180
|
// Node keys a module by its real path, so a symlinked package must too.
|
|
181
181
|
return existsSync(target) ? realpathSync(target) : undefined;
|
|
182
182
|
}
|
|
@@ -188,10 +188,10 @@ export function chantPackageSourceTarget(specifier, parentPath) {
|
|
|
188
188
|
}
|
|
189
189
|
/**
|
|
190
190
|
* #3981 — from source, resolve chant's own packages through their
|
|
191
|
-
* `
|
|
191
|
+
* `@intentius/chant-source` export condition, as `node --conditions=@intentius/chant-source` (which
|
|
192
192
|
* the repository's `bin/chant` passes) would. A lexicon's `default` export is
|
|
193
193
|
* its compiled `dist/*.js`, which a checkout may not have built, or built from
|
|
194
|
-
* older source; `
|
|
194
|
+
* older source; `@intentius/chant-source` is its `src/*.ts`, which vitest, a project's
|
|
195
195
|
* tsconfig `paths` and fold's own resolution (`SOURCE_EXPORT_CONDITIONS`)
|
|
196
196
|
* pick. Without this, a CLI run from source by `node --import tsx` would load
|
|
197
197
|
* a plugin from `dist/` and fold the project against `src/`: two copies of the
|