refactor: hard-fork GSD -> MSD (Make Software Done)
Mechanical rename produced by scripts/msd-rename.cjs: gsd/Gsd/GSD -> msd/Msd/MSD across contents and paths, upstream package/repo coordinates -> @golem15/msd-core and golem15com/msd-core. Deep links into upstream history, sibling upstream packages, the GSD-2 import feature, CHANGELOG.md and .changeset/ are kept as-is. Hand edits on top: MSD block-letter banner and logos, LICENSE copyright line, package/plugin identity, regenerated lockfile, install-tree fixtures, derived registries and benchmark baseline; migration checksum baseline re-locked (MSD keeps its own install state, so no install had applied the old sums); sort-order and regex-escaped expectations in tests adjusted.
This commit is contained in:
@@ -2,14 +2,14 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* lint-vendored-deps.cjs — freshness gate for gsd-core/bin/lib/vendor/.
|
||||
* lint-vendored-deps.cjs — freshness gate for msd-core/bin/lib/vendor/.
|
||||
*
|
||||
* #3477 follow-up: gsd-core/bin/** is copied by the installer into trees
|
||||
* #3477 follow-up: msd-core/bin/** is copied by the installer into trees
|
||||
* that have NO node_modules, so it must carry zero external requires
|
||||
* (local/no-external-require-in-bin, eslint-rules/no-external-require-in-bin.cjs).
|
||||
* Third-party packages that gsd-core/bin/** needs at runtime are instead
|
||||
* vendored verbatim under gsd-core/bin/lib/vendor/ — see
|
||||
* gsd-core/bin/lib/vendor/README.md.
|
||||
* Third-party packages that msd-core/bin/** needs at runtime are instead
|
||||
* vendored verbatim under msd-core/bin/lib/vendor/ — see
|
||||
* msd-core/bin/lib/vendor/README.md.
|
||||
*
|
||||
* A vendored artifact that silently drifts from its upstream package is
|
||||
* just as dangerous as never vendoring it in the first place (a stale
|
||||
@@ -23,13 +23,13 @@
|
||||
* 1. The vendored `.cjs` no longer matches its upstream `node_modules`
|
||||
* build output byte-for-byte.
|
||||
* 2. (upstream-verbatim twins only) The vendored `.d.cts` under
|
||||
* gsd-core/bin/lib/vendor/ no longer matches its upstream
|
||||
* msd-core/bin/lib/vendor/ no longer matches its upstream
|
||||
* `node_modules` `.d.cts` byte-for-byte.
|
||||
* 3. (upstream-verbatim twins only) The source-side twin under
|
||||
* src/vendor/ (which tsc needs to resolve types for a relative
|
||||
* `./vendor/<pkg>.cjs` import — module resolution for a .cts source
|
||||
* is relative to src/, not the output dir) no longer matches the
|
||||
* vendored `.d.cts` under gsd-core/bin/lib/vendor/.
|
||||
* vendored `.d.cts` under msd-core/bin/lib/vendor/.
|
||||
* 4. The package's version pinned in package.json `devDependencies` no
|
||||
* longer matches the version actually installed at
|
||||
* `node_modules/<pkg>/package.json` (read there, per the dispatch
|
||||
@@ -82,10 +82,10 @@ function resolvePath(p) {
|
||||
* @typedef {object} VendoredPackage
|
||||
* @property {string} name npm package name, matches package.json devDependencies key
|
||||
* @property {string} upstreamCjs path under node_modules/ to the upstream build artifact
|
||||
* @property {string} vendoredCjs path under gsd-core/bin/lib/vendor/ to the vendored copy
|
||||
* @property {string} vendoredCjs path under msd-core/bin/lib/vendor/ to the vendored copy
|
||||
* @property {string|null} upstreamDts path under node_modules/ to the upstream .d.cts/.d.ts, or
|
||||
* null when upstream ships no types (forces hand-authored)
|
||||
* @property {string|null} vendoredDts path under gsd-core/bin/lib/vendor/ to the vendored .d.cts,
|
||||
* @property {string|null} vendoredDts path under msd-core/bin/lib/vendor/ to the vendored .d.cts,
|
||||
* or null when there is no bin-side type twin
|
||||
* @property {string|null} srcTwin path under src/vendor/ to the source-side type twin tsc
|
||||
* resolves for a relative import from src/**, or null
|
||||
@@ -102,16 +102,16 @@ const VENDORED = [
|
||||
{
|
||||
name: 're2js',
|
||||
upstreamCjs: 'node_modules/re2js/build/index.cjs',
|
||||
vendoredCjs: 'gsd-core/bin/lib/vendor/re2js.cjs',
|
||||
vendoredCjs: 'msd-core/bin/lib/vendor/re2js.cjs',
|
||||
upstreamDts: 'node_modules/re2js/build/index.d.cts',
|
||||
vendoredDts: 'gsd-core/bin/lib/vendor/re2js.d.cts',
|
||||
vendoredDts: 'msd-core/bin/lib/vendor/re2js.d.cts',
|
||||
srcTwin: 'src/vendor/re2js.d.cts',
|
||||
twinKind: 'upstream-verbatim',
|
||||
},
|
||||
{
|
||||
name: 'js-yaml',
|
||||
upstreamCjs: 'node_modules/js-yaml/dist/js-yaml.js',
|
||||
vendoredCjs: 'gsd-core/bin/lib/vendor/js-yaml.cjs',
|
||||
vendoredCjs: 'msd-core/bin/lib/vendor/js-yaml.cjs',
|
||||
upstreamDts: null,
|
||||
vendoredDts: null,
|
||||
srcTwin: 'src/vendor/js-yaml.d.cts',
|
||||
@@ -352,7 +352,7 @@ function main() {
|
||||
|
||||
if (Object.keys(remaining).length === 0) {
|
||||
process.stdout.write(
|
||||
`ok lint-vendored-deps --fix: gsd-core/bin/lib/vendor/{${names}} refreshed and now match node_modules and their pinned versions\n`,
|
||||
`ok lint-vendored-deps --fix: msd-core/bin/lib/vendor/{${names}} refreshed and now match node_modules and their pinned versions\n`,
|
||||
);
|
||||
return 0;
|
||||
}
|
||||
@@ -379,7 +379,7 @@ function main() {
|
||||
const names = VENDORED.map((row) => row.name).join(', ');
|
||||
throw new ExitError(
|
||||
1,
|
||||
`lint-vendored-deps: gsd-core/bin/lib/vendor/{${names}} has drifted from its\n`
|
||||
`lint-vendored-deps: msd-core/bin/lib/vendor/{${names}} has drifted from its\n`
|
||||
+ 'upstream package (or its version pin). Refresh with:\n'
|
||||
+ ` ${REFRESH_COMMAND}\n`
|
||||
+ 'Findings:\n'
|
||||
@@ -388,7 +388,7 @@ function main() {
|
||||
}
|
||||
|
||||
const names = VENDORED.map((row) => row.name).join(', ');
|
||||
process.stdout.write(`ok lint-vendored-deps: gsd-core/bin/lib/vendor/{${names}} match node_modules and their pinned versions\n`);
|
||||
process.stdout.write(`ok lint-vendored-deps: msd-core/bin/lib/vendor/{${names}} match node_modules and their pinned versions\n`);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user