Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 58ae83f732 | |||
| 3971ce0c84 | |||
| d7e387765f | |||
| 3efde32e06 |
21
changelog.md
21
changelog.md
@@ -1,5 +1,26 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2026-03-24 - 1.11.3 - fix(config)
|
||||||
|
replace npmextra with smartconfig for base registry resolution
|
||||||
|
|
||||||
|
- Switch the base registry source from npmextra.json to smartconfig.json for publish configuration.
|
||||||
|
- Update plugin imports and runtime config loading to use @push.rocks/smartconfig.
|
||||||
|
- Adjust packaged files and error messages to reference smartconfig.json consistently.
|
||||||
|
|
||||||
|
## 2026-03-05 - 1.11.2 - fix(deps)
|
||||||
|
bump @push.rocks/smartshell dependency to ^3.3.7 and update package version to 1.11.1
|
||||||
|
|
||||||
|
- package.json: version 1.11.0 -> 1.11.1
|
||||||
|
- package.json: @push.rocks/smartshell ^3.3.0 -> ^3.3.7
|
||||||
|
- ts/00_commitinfo_data.ts: version updated to 1.11.1
|
||||||
|
- changelog.md: added entry documenting the dependency bump and patch release
|
||||||
|
|
||||||
|
## 2026-03-05 - 1.11.1 - fix(deps)
|
||||||
|
bump @push.rocks/smartshell dependency to ^3.3.7
|
||||||
|
|
||||||
|
- package.json: @push.rocks/smartshell ^3.3.0 -> ^3.3.7
|
||||||
|
- Only dependency version updated (patch-level)
|
||||||
|
|
||||||
## 2025-12-16 - 1.11.0 - feat(publish)
|
## 2025-12-16 - 1.11.0 - feat(publish)
|
||||||
add registry resolution (useBase/extendBase) and migrate filesystem operations to async SmartFs; improve publish flow and docs
|
add registry resolution (useBase/extendBase) and migrate filesystem operations to async SmartFs; improve publish flow and docs
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@git.zone/tspublish",
|
"name": "@git.zone/tspublish",
|
||||||
"version": "1.11.0",
|
"version": "1.11.3",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "A tool to publish multiple, concise, and small packages from monorepos, specifically for TypeScript projects within a git environment.",
|
"description": "A tool to publish multiple, concise, and small packages from monorepos, specifically for TypeScript projects within a git environment.",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
@@ -48,7 +48,7 @@
|
|||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@push.rocks/consolecolor": "^2.0.3",
|
"@push.rocks/consolecolor": "^2.0.3",
|
||||||
"@push.rocks/npmextra": "^5.3.3",
|
"@push.rocks/smartconfig": "^6.0.0",
|
||||||
"@push.rocks/smartcli": "^4.0.19",
|
"@push.rocks/smartcli": "^4.0.19",
|
||||||
"@push.rocks/smartdelay": "^3.0.5",
|
"@push.rocks/smartdelay": "^3.0.5",
|
||||||
"@push.rocks/smartfile": "^13.1.2",
|
"@push.rocks/smartfile": "^13.1.2",
|
||||||
@@ -57,7 +57,7 @@
|
|||||||
"@push.rocks/smartnpm": "^2.0.6",
|
"@push.rocks/smartnpm": "^2.0.6",
|
||||||
"@push.rocks/smartpath": "^6.0.0",
|
"@push.rocks/smartpath": "^6.0.0",
|
||||||
"@push.rocks/smartrequest": "^5.0.1",
|
"@push.rocks/smartrequest": "^5.0.1",
|
||||||
"@push.rocks/smartshell": "^3.3.0"
|
"@push.rocks/smartshell": "^3.3.7"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"typescript",
|
"typescript",
|
||||||
|
|||||||
2437
pnpm-lock.yaml
generated
2437
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@git.zone/tspublish',
|
name: '@git.zone/tspublish',
|
||||||
version: '1.11.0',
|
version: '1.11.3',
|
||||||
description: 'A tool to publish multiple, concise, and small packages from monorepos, specifically for TypeScript projects within a git environment.'
|
description: 'A tool to publish multiple, concise, and small packages from monorepos, specifically for TypeScript projects within a git environment.'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ export class PublishModule {
|
|||||||
'dist_ts_web/**/*',
|
'dist_ts_web/**/*',
|
||||||
'assets/**/*',
|
'assets/**/*',
|
||||||
'cli.js',
|
'cli.js',
|
||||||
'npmextra.json',
|
'smartconfig.json',
|
||||||
'readme.md',
|
'readme.md',
|
||||||
],
|
],
|
||||||
...this.options.tsPublishJson.bin ? {
|
...this.options.tsPublishJson.bin ? {
|
||||||
@@ -236,7 +236,7 @@ export class PublishModule {
|
|||||||
/**
|
/**
|
||||||
* Resolves the registries to publish to based on tspublish.json configuration.
|
* Resolves the registries to publish to based on tspublish.json configuration.
|
||||||
* Supports:
|
* Supports:
|
||||||
* - "useBase": Use only registries from npmextra.json
|
* - "useBase": Use only registries from smartconfig.json
|
||||||
* - "extendBase": Use base registries + additions, with exclusions via "-" prefix
|
* - "extendBase": Use base registries + additions, with exclusions via "-" prefix
|
||||||
* - Explicit registries: Direct registry URLs in format "url:accessLevel"
|
* - Explicit registries: Direct registry URLs in format "url:accessLevel"
|
||||||
*/
|
*/
|
||||||
@@ -254,16 +254,16 @@ export class PublishModule {
|
|||||||
let baseRegistries: string[] = [];
|
let baseRegistries: string[] = [];
|
||||||
let baseAccessLevel = 'public';
|
let baseAccessLevel = 'public';
|
||||||
|
|
||||||
// Load base registries from npmextra.json if needed
|
// Load base registries from smartconfig.json if needed
|
||||||
if (hasUseBase || hasExtendBase) {
|
if (hasUseBase || hasExtendBase) {
|
||||||
const npmextraInstance = new plugins.npmextra.Npmextra(this.options.monoRepoDir);
|
const smartconfigInstance = new plugins.smartconfig.Smartconfig(this.options.monoRepoDir);
|
||||||
const gitzoneConfig = npmextraInstance.dataFor<any>('@git.zone/cli', {});
|
const gitzoneConfig = smartconfigInstance.dataFor<any>('@git.zone/cli', {});
|
||||||
baseRegistries = gitzoneConfig?.release?.registries || [];
|
baseRegistries = gitzoneConfig?.release?.registries || [];
|
||||||
baseAccessLevel = gitzoneConfig?.release?.accessLevel || 'public';
|
baseAccessLevel = gitzoneConfig?.release?.accessLevel || 'public';
|
||||||
|
|
||||||
if (baseRegistries.length === 0) {
|
if (baseRegistries.length === 0) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`useBase/extendBase specified in tspublish.json but no registries configured in npmextra.json at @git.zone/cli.release.registries`
|
`useBase/extendBase specified in tspublish.json but no registries configured in smartconfig.json at @git.zone/cli.release.registries`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ export { path };
|
|||||||
|
|
||||||
// @push.rocks scope
|
// @push.rocks scope
|
||||||
import * as consolecolor from '@push.rocks/consolecolor';
|
import * as consolecolor from '@push.rocks/consolecolor';
|
||||||
import * as npmextra from '@push.rocks/npmextra';
|
import * as smartconfig from '@push.rocks/smartconfig';
|
||||||
import * as smartfile from '@push.rocks/smartfile';
|
import * as smartfile from '@push.rocks/smartfile';
|
||||||
import { SmartFs, SmartFsProviderNode } from '@push.rocks/smartfs';
|
import { SmartFs, SmartFsProviderNode } from '@push.rocks/smartfs';
|
||||||
import * as smartcli from '@push.rocks/smartcli';
|
import * as smartcli from '@push.rocks/smartcli';
|
||||||
@@ -18,4 +18,4 @@ import * as smartshell from '@push.rocks/smartshell';
|
|||||||
// Create a pre-configured SmartFs instance for Node.js filesystem operations
|
// Create a pre-configured SmartFs instance for Node.js filesystem operations
|
||||||
const smartfs = new SmartFs(new SmartFsProviderNode());
|
const smartfs = new SmartFs(new SmartFsProviderNode());
|
||||||
|
|
||||||
export { consolecolor, npmextra, smartfile, smartfs, smartcli, smartdelay, smartlog, smartnpm, smartpath, smartrequest, smartshell };
|
export { consolecolor, smartconfig, smartfile, smartfs, smartcli, smartdelay, smartlog, smartnpm, smartpath, smartrequest, smartshell };
|
||||||
|
|||||||
Reference in New Issue
Block a user