Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

refactor: remove unused codes #393

Merged
merged 1 commit into from
Sep 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 0 additions & 14 deletions scripts/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.

import lerna from 'lerna';
import * as childproc from 'child_process';

import project from './project';
import { createLogger } from './logger';
Expand All @@ -38,18 +37,6 @@ const getVersion = async () => {
return { major, minor, patch };
};

const getCommitSHA = async () => {
return new Promise((resolve, reject) => {
childproc.exec('git rev-parse --short=7 HEAD', (err, stdout) => {
if (err) {
return reject(err);
}

resolve(stdout);
});
});
};

const getDate = (sep?: string): string => {
const s = sep === undefined ? '' : sep;
const raw = new Date()
Expand All @@ -69,7 +56,6 @@ const publish = async () => {

try {
const { major, minor, patch } = await getVersion();
const sha = await getCommitSHA();
const version = `${major}.${minor}.${patch}-${DIST_TAG}.${getDate()}`;

lerna([
Expand Down