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

+1 -1
View File
@@ -68,7 +68,7 @@ jobs:
fi
- name: Publish
if: ${{ github.event_name == 'push' }}
run: node build/publish.js
run: node -r @hydrooj/utils/lib/register build/publish.ts
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# - name: Benchmark
+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,