mirror of
https://github.com/renovatebot/github-action.git
synced 2025-12-27 12:43:37 +00:00
build: compile as esm
This commit is contained in:
parent
4a407be28a
commit
1544d86fa0
7 changed files with 5 additions and 7 deletions
|
|
@ -13,6 +13,7 @@
|
||||||
},
|
},
|
||||||
"license": "GPL-3.0-or-later",
|
"license": "GPL-3.0-or-later",
|
||||||
"author": "Jeroen de Bruijn",
|
"author": "Jeroen de Bruijn",
|
||||||
|
"type": "module",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "run-s clean compile",
|
"build": "run-s clean compile",
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { getInput } from '@actions/core';
|
import { getInput } from '@actions/core';
|
||||||
import path from 'path';
|
import path from 'node:path';
|
||||||
|
|
||||||
export interface EnvironmentVariable {
|
export interface EnvironmentVariable {
|
||||||
key: string;
|
key: string;
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
import { Docker } from './docker';
|
import { Docker } from './docker';
|
||||||
import { Input } from './input';
|
import { Input } from './input';
|
||||||
import { exec } from '@actions/exec';
|
import { exec } from '@actions/exec';
|
||||||
import fs from 'fs/promises';
|
import fs from 'node:fs/promises';
|
||||||
import path from 'path';
|
import path from 'node:path';
|
||||||
|
|
||||||
export class Renovate {
|
export class Renovate {
|
||||||
static dockerGroupRegex = /^docker:x:(?<groupId>[1-9][0-9]*):/m;
|
static dockerGroupRegex = /^docker:x:(?<groupId>[1-9][0-9]*):/m;
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,6 @@ await build({
|
||||||
minify: !!env['CI'],
|
minify: !!env['CI'],
|
||||||
tsconfig: 'tsconfig.dist.json',
|
tsconfig: 'tsconfig.dist.json',
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
// format: 'esm', // TODO: later PR
|
format: 'esm',
|
||||||
outdir: './dist/',
|
outdir: './dist/',
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
{
|
|
||||||
"type": "module"
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue