fix: type as module

This commit is contained in:
Endercheif 2023-03-06 15:02:16 -08:00
parent 2d8c26f156
commit 234530ed60
No known key found for this signature in database
GPG key ID: 7767459A0C8BEE00
6 changed files with 12 additions and 11 deletions

View file

@ -3,8 +3,8 @@ import { Router } from 'express';
import { EventEmitter } from 'events';
import { get_latest_runtime_matching_language_version, runtimes as _runtimes } from '../runtime';
import Job from '../job';
import package_ from '../package';
import Job from '../job.js';
import package_ from '../package.js';
import { create } from 'logplease'
const logger = create('api/v2', {});

View file

@ -2,13 +2,13 @@
import { create, setLogLevel } from 'logplease';
import express from 'express';
import expressWs from 'express-ws';
import * as globals from './globals';
import config from './config';
import * as globals from './globals.js';
import config from './config.js';
import { join } from 'path';
import { readdir } from 'fs/promises';
import { existsSync, mkdirSync, chmodSync } from 'fs';
import { urlencoded, json } from 'body-parser';
import { load_package } from './runtime';
import { load_package } from './runtime.js';
const logger = create('index', {});
const app = express();

View file

@ -4,8 +4,8 @@ const logger = create('job');
import { v4 as uuidv4 } from 'uuid';
import { spawn } from 'child_process';
import { join, relative, dirname } from 'path';
import config from './config';
import * as globals from './globals';
import config from './config.js';
import * as globals from './globals.js';
import { mkdir, chown, writeFile, readdir, stat as _stat, rm } from 'fs/promises';
import { readdirSync, readFileSync } from 'fs';
import wait_pid from 'waitpid';

View file

@ -1,7 +1,7 @@
import { create } from 'logplease';
import { parse, satisfies, rcompare } from 'semver';
import config from './config';
import { platform } from './globals';
import config from './config.js';
import { platform } from './globals.js';
import { readFileSync, existsSync } from 'fs';
import { join } from 'path';