workspace: publish: switch to typescript

pull/551/head
undefined 2 years ago
parent eb9e79c095
commit 7d7b08ecf1
No known key found for this signature in database

@ -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

@ -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,
Loading…
Cancel
Save