workspace: publish: switch to typescript

This commit is contained in:
undefined committed 2023-04-04 17:46:59 +08:00
1 parent eb9e79c095
commit 7d7b08ecf1
2 files changed
+7 -9

No files matched your search

+6 -8
View File
@@ -1,13 +1,11 @@
/* eslint-disable no-await-in-loop */
/* eslint-disable import/no-dynamic-require */
require('@hydrooj/utils/lib/register');
const { gt } = require('semver');
const { default: latest } = require('latest-version');
const path = require('path');
const { default: ora } = require('ora');
const { writeFileSync } = require('fs');
const { getWorkspaces, spawnAsync } = require('./utils');
import { writeFileSync } from 'fs';
import path from 'path';
import latest from 'latest-version';
import ora from 'ora';
import { gt } from 'semver';
import { getWorkspaces, spawnAsync } from './utils';
const {
CI, GITHUB_EVENT_NAME, GITHUB_REF,