Skip to content

Commit

Permalink
chore: update builded files
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelramos committed Jul 8, 2024
1 parent b885ca2 commit 165614b
Show file tree
Hide file tree
Showing 12 changed files with 61 additions and 10 deletions.
34 changes: 34 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,42 @@ export interface ConventionalPackageOptions {
title?: string
}

export declare function executeFetchAll(cwd?: string | undefined | null): boolean

export declare function executeFetchAllTags(cwd?: string | undefined | null): boolean

export declare function getAllFilesChangedSinceBranch(packageInfo: Array<PackageInfo>, branch: string, cwd?: string | undefined | null): Array<string>

export declare function getAllFilesChangedSinceSha(sha: string, cwd?: string | undefined | null): Array<string>

export declare function getAllFilesChangedSinceTagInfos(packageInfo: Array<PackageInfo>, tagInfo: Array<PublishTagInfo>, cwd?: string | undefined | null): Array<string>

export declare function getCommitsSince(cwd?: string | undefined | null, since?: string | undefined | null, relative?: string | undefined | null): Array<Commit>

export declare function getConventionalForPackage(packageInfo: PackageInfo, noFetchAll?: boolean | undefined | null, cwd?: string | undefined | null, conventionalOptions?: ConventionalPackageOptions | undefined | null): ConventionalPackage

export declare function getCurrentSha(cwd?: string | undefined | null): string

export declare function getDefinedAgent(): string | null

export declare function getDivergedCommit(refer: string, cwd?: string | undefined | null): string | null

export declare function getLastKnownPublishTagInfoForAllPackages(packageInfo: Array<PackageInfo>, cwd?: string | undefined | null): Array<PublishTagInfo | undefined | null>

export declare function getLastKnownPublishTagInfoForPackage(packageInfo: PackageInfo, cwd?: string | undefined | null): PublishTagInfo | null

export declare function getMonorepoChangedPackages(sha?: string | undefined | null): Array<PackageInfo>

export declare function getMonorepoPackages(): Array<PackageInfo>

export declare function getProjectRootPath(): string | null

export declare function getRemoteOrLocalTags(cwd?: string | undefined | null, local?: boolean | undefined | null): Array<RemoteTags>

export declare function gitPush(cwd?: string | undefined | null): boolean

export declare function isWorkdirUnclean(cwd?: string | undefined | null): boolean

export interface PackageInfo {
name: string
private: boolean
Expand All @@ -58,3 +88,7 @@ export interface RemoteTags {
tag: string
}

export declare function setCommit(message: string, body?: string | undefined | null, footer?: string | undefined | null, cwd?: string | undefined | null): boolean

export declare function setTag(tag: string, message?: string | undefined | null, cwd?: string | undefined | null): boolean

17 changes: 17 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,23 @@ if (!nativeBinding) {
}

module.exports.Agent = nativeBinding.Agent
module.exports.executeFetchAll = nativeBinding.executeFetchAll
module.exports.executeFetchAllTags = nativeBinding.executeFetchAllTags
module.exports.getAllFilesChangedSinceBranch = nativeBinding.getAllFilesChangedSinceBranch
module.exports.getAllFilesChangedSinceSha = nativeBinding.getAllFilesChangedSinceSha
module.exports.getAllFilesChangedSinceTagInfos = nativeBinding.getAllFilesChangedSinceTagInfos
module.exports.getCommitsSince = nativeBinding.getCommitsSince
module.exports.getConventionalForPackage = nativeBinding.getConventionalForPackage
module.exports.getCurrentSha = nativeBinding.getCurrentSha
module.exports.getDefinedAgent = nativeBinding.getDefinedAgent
module.exports.getDivergedCommit = nativeBinding.getDivergedCommit
module.exports.getLastKnownPublishTagInfoForAllPackages = nativeBinding.getLastKnownPublishTagInfoForAllPackages
module.exports.getLastKnownPublishTagInfoForPackage = nativeBinding.getLastKnownPublishTagInfoForPackage
module.exports.getMonorepoChangedPackages = nativeBinding.getMonorepoChangedPackages
module.exports.getMonorepoPackages = nativeBinding.getMonorepoPackages
module.exports.getProjectRootPath = nativeBinding.getProjectRootPath
module.exports.getRemoteOrLocalTags = nativeBinding.getRemoteOrLocalTags
module.exports.gitPush = nativeBinding.gitPush
module.exports.isWorkdirUnclean = nativeBinding.isWorkdirUnclean
module.exports.setCommit = nativeBinding.setCommit
module.exports.setTag = nativeBinding.setTag
2 changes: 1 addition & 1 deletion npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@websublime/workspace-tools-darwin-arm64",
"version": "0.4.0",
"version": "0.4.1",
"cpu": [
"arm64"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@websublime/workspace-tools-darwin-x64",
"version": "0.4.0",
"version": "0.4.1",
"cpu": [
"x64"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/linux-arm-gnueabihf/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@websublime/workspace-tools-linux-arm-gnueabihf",
"version": "0.4.0",
"version": "0.4.1",
"cpu": [
"arm"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/linux-arm64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@websublime/workspace-tools-linux-arm64-gnu",
"version": "0.4.0",
"version": "0.4.1",
"cpu": [
"arm64"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/linux-arm64-musl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@websublime/workspace-tools-linux-arm64-musl",
"version": "0.4.0",
"version": "0.4.1",
"cpu": [
"arm64"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@websublime/workspace-tools-linux-x64-gnu",
"version": "0.4.0",
"version": "0.4.1",
"cpu": [
"x64"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/linux-x64-musl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@websublime/workspace-tools-linux-x64-musl",
"version": "0.4.0",
"version": "0.4.1",
"cpu": [
"x64"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/win32-arm64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@websublime/workspace-tools-win32-arm64-msvc",
"version": "0.4.0",
"version": "0.4.1",
"cpu": [
"arm64"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/win32-ia32-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@websublime/workspace-tools-win32-ia32-msvc",
"version": "0.4.0",
"version": "0.4.1",
"cpu": [
"ia32"
],
Expand Down
2 changes: 1 addition & 1 deletion npm/win32-x64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@websublime/workspace-tools-win32-x64-msvc",
"version": "0.4.0",
"version": "0.4.1",
"cpu": [
"x64"
],
Expand Down

0 comments on commit 165614b

Please sign in to comment.