pubm 0.3.6 → 0.4.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/bin/{cli.js → cli.cjs} +6 -8
- package/index.cjs +1 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +36 -59
- package/postinstall.cjs +11 -13
- package/LICENSE +0 -191
- package/README.md +0 -182
- package/dist/changeset/bump-utils.d.ts +0 -3
- package/dist/changeset/changelog.d.ts +0 -11
- package/dist/changeset/index.d.ts +0 -8
- package/dist/changeset/migrate.d.ts +0 -7
- package/dist/changeset/parser.d.ts +0 -11
- package/dist/changeset/reader.d.ts +0 -2
- package/dist/changeset/status.d.ts +0 -12
- package/dist/changeset/version.d.ts +0 -7
- package/dist/changeset/writer.d.ts +0 -4
- package/dist/commands/add.d.ts +0 -2
- package/dist/commands/changesets.d.ts +0 -2
- package/dist/commands/init.d.ts +0 -2
- package/dist/commands/migrate.d.ts +0 -2
- package/dist/commands/pre.d.ts +0 -2
- package/dist/commands/secrets.d.ts +0 -2
- package/dist/commands/snapshot.d.ts +0 -2
- package/dist/commands/status.d.ts +0 -2
- package/dist/commands/sync.d.ts +0 -10
- package/dist/commands/update.d.ts +0 -2
- package/dist/commands/version-cmd.d.ts +0 -6
- package/dist/config/defaults.d.ts +0 -2
- package/dist/config/index.d.ts +0 -4
- package/dist/config/loader.d.ts +0 -2
- package/dist/config/types.d.ts +0 -47
- package/dist/ecosystem/ecosystem.d.ts +0 -12
- package/dist/ecosystem/index.d.ts +0 -6
- package/dist/ecosystem/js.d.ts +0 -13
- package/dist/ecosystem/rust.d.ts +0 -21
- package/dist/error.d.ts +0 -7
- package/dist/git.d.ts +0 -32
- package/dist/index.cjs +0 -28292
- package/dist/index.d.ts +0 -30
- package/dist/index.js +0 -28257
- package/dist/monorepo/dependency-graph.d.ts +0 -17
- package/dist/monorepo/discover.d.ts +0 -15
- package/dist/monorepo/groups.d.ts +0 -17
- package/dist/monorepo/index.d.ts +0 -4
- package/dist/monorepo/workspace.d.ts +0 -5
- package/dist/options.d.ts +0 -3
- package/dist/plugin/index.d.ts +0 -2
- package/dist/plugin/runner.d.ts +0 -14
- package/dist/plugin/types.d.ts +0 -47
- package/dist/plugins/external-version-sync/index.d.ts +0 -4
- package/dist/plugins/external-version-sync/sync.d.ts +0 -2
- package/dist/plugins/external-version-sync/types.d.ts +0 -14
- package/dist/prerelease/index.d.ts +0 -2
- package/dist/prerelease/pre.d.ts +0 -11
- package/dist/prerelease/snapshot.d.ts +0 -8
- package/dist/registry/crates.d.ts +0 -17
- package/dist/registry/custom-registry.d.ts +0 -5
- package/dist/registry/index.d.ts +0 -3
- package/dist/registry/jsr.d.ts +0 -36
- package/dist/registry/npm.d.ts +0 -25
- package/dist/registry/registry.d.ts +0 -20
- package/dist/tasks/crates.d.ts +0 -6
- package/dist/tasks/custom-registry.d.ts +0 -0
- package/dist/tasks/dry-run-publish.d.ts +0 -6
- package/dist/tasks/github-release.d.ts +0 -19
- package/dist/tasks/jsr.d.ts +0 -9
- package/dist/tasks/npm.d.ts +0 -4
- package/dist/tasks/preflight.d.ts +0 -3
- package/dist/tasks/prerequisites-check.d.ts +0 -3
- package/dist/tasks/required-conditions-check.d.ts +0 -3
- package/dist/tasks/required-missing-information.d.ts +0 -7
- package/dist/tasks/runner.d.ts +0 -10
- package/dist/types/jsr-api.d.ts +0 -91
- package/dist/types/jsr-json.d.ts +0 -10
- package/dist/types/options.d.ts +0 -115
- package/dist/types/package-json.d.ts +0 -84
- package/dist/utils/cli.d.ts +0 -2
- package/dist/utils/crate-graph.d.ts +0 -1
- package/dist/utils/db.d.ts +0 -6
- package/dist/utils/engine-version.d.ts +0 -2
- package/dist/utils/exec.d.ts +0 -23
- package/dist/utils/listr.d.ts +0 -2
- package/dist/utils/notify-new-version.d.ts +0 -1
- package/dist/utils/open-url.d.ts +0 -1
- package/dist/utils/package-manager.d.ts +0 -3
- package/dist/utils/package-name.d.ts +0 -4
- package/dist/utils/package.d.ts +0 -23
- package/dist/utils/registries.d.ts +0 -8
- package/dist/utils/rollback.d.ts +0 -6
- package/dist/utils/runtime.d.ts +0 -3
- package/dist/utils/secure-store.d.ts +0 -6
- package/dist/utils/spawn-interactive.d.ts +0 -10
- package/dist/utils/token.d.ts +0 -12
- package/dist/validate/entry-points.d.ts +0 -5
- package/dist/validate/extraneous-files.d.ts +0 -5
- package/dist/validate/index.d.ts +0 -2
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
interface Dependency {
|
|
2
|
-
[k: string]: string;
|
|
3
|
-
}
|
|
4
|
-
type Person = {
|
|
5
|
-
name: string;
|
|
6
|
-
url?: string;
|
|
7
|
-
email?: string;
|
|
8
|
-
} & Record<string, unknown>;
|
|
9
|
-
export type PackageExportsEntryObject = {
|
|
10
|
-
require?: PackageExportsEntry | PackageExportsFallback;
|
|
11
|
-
import?: PackageExportsEntry | PackageExportsFallback;
|
|
12
|
-
node?: PackageExportsEntry | PackageExportsFallback;
|
|
13
|
-
default?: PackageExportsEntry | PackageExportsFallback;
|
|
14
|
-
types?: PackageExportsEntry | PackageExportsFallback;
|
|
15
|
-
};
|
|
16
|
-
type PackageExportsEntry = PackageExportsEntryPath | PackageExportsEntryObject;
|
|
17
|
-
type PackageExportsEntryPath = string | null;
|
|
18
|
-
type PackageExportsFallback = PackageExportsEntry[];
|
|
19
|
-
export type Engine = "node" | "git" | "npm" | "pnpm" | "yarn";
|
|
20
|
-
export interface PackageJson {
|
|
21
|
-
name: string;
|
|
22
|
-
version: string;
|
|
23
|
-
description?: string;
|
|
24
|
-
keywords?: string[];
|
|
25
|
-
homepage?: string;
|
|
26
|
-
bugs?: {
|
|
27
|
-
url?: string;
|
|
28
|
-
email?: string;
|
|
29
|
-
[k: string]: unknown;
|
|
30
|
-
} | string;
|
|
31
|
-
license?: string;
|
|
32
|
-
author?: Person;
|
|
33
|
-
contributors?: Person[];
|
|
34
|
-
maintainers?: Person[];
|
|
35
|
-
files?: string[];
|
|
36
|
-
main?: string;
|
|
37
|
-
exports?: string | ({
|
|
38
|
-
"."?: PackageExportsEntry | PackageExportsFallback;
|
|
39
|
-
} & Record<string, PackageExportsEntry | PackageExportsFallback>);
|
|
40
|
-
bin?: string | {
|
|
41
|
-
[k: string]: string;
|
|
42
|
-
};
|
|
43
|
-
type?: "commonjs" | "module";
|
|
44
|
-
types?: string;
|
|
45
|
-
typings?: string;
|
|
46
|
-
typesVersions?: {
|
|
47
|
-
[k: string]: {
|
|
48
|
-
"*"?: string[];
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
repository?: {
|
|
52
|
-
type?: string;
|
|
53
|
-
url?: string;
|
|
54
|
-
directory?: string;
|
|
55
|
-
[k: string]: unknown;
|
|
56
|
-
} | string;
|
|
57
|
-
scripts?: Record<string, string>;
|
|
58
|
-
config?: {
|
|
59
|
-
[k: string]: unknown;
|
|
60
|
-
};
|
|
61
|
-
dependencies?: Dependency;
|
|
62
|
-
devDependencies?: Dependency;
|
|
63
|
-
optionalDependencies?: Dependency;
|
|
64
|
-
peerDependencies?: Dependency;
|
|
65
|
-
packageManager?: string;
|
|
66
|
-
engines?: Record<Engine, string>;
|
|
67
|
-
preferGlobal?: boolean;
|
|
68
|
-
private?: boolean | ("false" | "true");
|
|
69
|
-
publishConfig?: {
|
|
70
|
-
access?: "public" | "restricted";
|
|
71
|
-
tag?: string;
|
|
72
|
-
registry?: string;
|
|
73
|
-
[k: string]: unknown;
|
|
74
|
-
};
|
|
75
|
-
dist?: {
|
|
76
|
-
shasum?: string;
|
|
77
|
-
tarball?: string;
|
|
78
|
-
[k: string]: unknown;
|
|
79
|
-
};
|
|
80
|
-
readme?: string;
|
|
81
|
-
module?: string;
|
|
82
|
-
[k: string]: unknown;
|
|
83
|
-
}
|
|
84
|
-
export {};
|
package/dist/utils/cli.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function sortCratesByDependencyOrder(cratePaths: string[]): Promise<string[]>;
|
package/dist/utils/db.d.ts
DELETED
package/dist/utils/exec.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export declare class NonZeroExitError extends Error {
|
|
2
|
-
output: {
|
|
3
|
-
stdout: string;
|
|
4
|
-
stderr: string;
|
|
5
|
-
};
|
|
6
|
-
constructor(command: string, exitCode: number, output: {
|
|
7
|
-
stdout: string;
|
|
8
|
-
stderr: string;
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
export interface ExecOptions {
|
|
12
|
-
throwOnError?: boolean;
|
|
13
|
-
nodeOptions?: {
|
|
14
|
-
env?: Record<string, string | undefined>;
|
|
15
|
-
cwd?: string;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
export interface ExecResult {
|
|
19
|
-
stdout: string;
|
|
20
|
-
stderr: string;
|
|
21
|
-
exitCode: number;
|
|
22
|
-
}
|
|
23
|
-
export declare function exec(command: string, args?: string[], options?: ExecOptions): Promise<ExecResult>;
|
package/dist/utils/listr.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function notifyNewVersion(): Promise<void>;
|
package/dist/utils/open-url.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function openUrl(url: string): Promise<void>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare function isScopedPackage(packageName: string): boolean;
|
|
2
|
-
export declare function getScope(packageName: string): string | null;
|
|
3
|
-
export declare function getScopeAndName(packageName: string): [string, string];
|
|
4
|
-
export declare function isValidPackageName(packageName: string): boolean;
|
package/dist/utils/package.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { PackageConfig } from "../config/types.js";
|
|
2
|
-
import type { JsrJson } from "../types/jsr-json.js";
|
|
3
|
-
import type { PackageJson } from "../types/package-json.js";
|
|
4
|
-
export declare function patchCachedJsrJson(contents: Partial<JsrJson>, { cwd }?: {
|
|
5
|
-
cwd?: string | undefined;
|
|
6
|
-
}): void;
|
|
7
|
-
export declare function findOutFile(file: string, { cwd }?: {
|
|
8
|
-
cwd?: string | undefined;
|
|
9
|
-
}): Promise<string | null>;
|
|
10
|
-
export declare function getPackageJson({ cwd, fallbackJsr, }?: {
|
|
11
|
-
cwd?: string | undefined;
|
|
12
|
-
fallbackJsr?: boolean | undefined;
|
|
13
|
-
}): Promise<PackageJson>;
|
|
14
|
-
export declare function getJsrJson({ cwd, fallbackPackage, }?: {
|
|
15
|
-
cwd?: string | undefined;
|
|
16
|
-
fallbackPackage?: boolean | undefined;
|
|
17
|
-
}): Promise<JsrJson>;
|
|
18
|
-
export declare function packageJsonToJsrJson(packageJson: PackageJson): Promise<JsrJson>;
|
|
19
|
-
export declare function jsrJsonToPackageJson(jsrJson: JsrJson): PackageJson;
|
|
20
|
-
export declare function version({ cwd }?: {
|
|
21
|
-
cwd?: string | undefined;
|
|
22
|
-
}): Promise<string>;
|
|
23
|
-
export declare function replaceVersion(version: string, packages?: PackageConfig[]): Promise<string[]>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { PackageConfig } from "../config/types.js";
|
|
2
|
-
import type { RegistryType } from "../types/options.js";
|
|
3
|
-
interface RegistrySource {
|
|
4
|
-
packages?: PackageConfig[];
|
|
5
|
-
registries: RegistryType[];
|
|
6
|
-
}
|
|
7
|
-
export declare function collectRegistries(ctx: RegistrySource): RegistryType[];
|
|
8
|
-
export {};
|
package/dist/utils/rollback.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
type Rollback<Ctx extends {}> = (ctx: Ctx) => Promise<unknown>;
|
|
2
|
-
export declare function addRollback<Ctx extends {}>(rollback: Rollback<Ctx>, context: Ctx): void;
|
|
3
|
-
export declare function rollbackLog(message: string): void;
|
|
4
|
-
export declare function rollbackError(message: string): void;
|
|
5
|
-
export declare function rollback(): Promise<void>;
|
|
6
|
-
export {};
|
package/dist/utils/runtime.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface InteractiveChild {
|
|
2
|
-
stdout: ReadableStream<Uint8Array>;
|
|
3
|
-
stderr: ReadableStream<Uint8Array>;
|
|
4
|
-
stdin: {
|
|
5
|
-
write(data: string | ArrayBufferView | ArrayBuffer): number;
|
|
6
|
-
flush(): number | Promise<number>;
|
|
7
|
-
};
|
|
8
|
-
exited: Promise<number>;
|
|
9
|
-
}
|
|
10
|
-
export declare function spawnInteractive(command: string[]): InteractiveChild;
|
package/dist/utils/token.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface TokenEntry {
|
|
2
|
-
envVar: string;
|
|
3
|
-
dbKey: string;
|
|
4
|
-
ghSecretName: string;
|
|
5
|
-
promptLabel: string;
|
|
6
|
-
tokenUrl: string;
|
|
7
|
-
tokenUrlLabel: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const TOKEN_CONFIG: Record<string, TokenEntry>;
|
|
10
|
-
export declare function loadTokens(registries: string[]): Record<string, string>;
|
|
11
|
-
export declare const loadTokensFromDb: typeof loadTokens;
|
|
12
|
-
export declare function injectTokensToEnv(tokens: Record<string, string>): () => void;
|
package/dist/validate/index.d.ts
DELETED