Both utilities lived in the pnpm/components Bit workspace, where their component names collide with same-named components elsewhere in the Bit registry. Move the code here and publish it under new names: `@pnpm/util.lex-comparator` -> `@pnpm/text.ordinal-comparator` `@pnpm/config.nerf-dart` -> `@pnpm/config.registry-auth-key` The new names describe what the utilities do: the comparator is ordinal rather than locale-aware, and the mapped URL is the key that registry settings are stored under in `.npmrc`. The exported functions keep their names, so consumers only change their import specifiers. Implementations and tests are carried over unchanged. The rationale from the components' docs pages moves into doc comments: why `localeCompare` cannot be used for values compared across machines, and where `nerfDart` originates. No pacquet counterpart is needed. The Rust stack has its own implementations of both and no user-visible behavior changes.
17 lines
258 B
JSON
17 lines
258 B
JSON
{
|
|
"extends": "@pnpm/tsconfig",
|
|
"compilerOptions": {
|
|
"outDir": "lib",
|
|
"rootDir": "src"
|
|
},
|
|
"include": [
|
|
"src/**/*.ts",
|
|
"../../__typings__/**/*.d.ts"
|
|
],
|
|
"references": [
|
|
{
|
|
"path": "../../text/ordinal-comparator"
|
|
}
|
|
]
|
|
}
|