mirror of
https://github.com/cycjimmy/semantic-release-action.git
synced 2026-05-14 20:40:32 +00:00
more fixes cjs->esm
This commit is contained in:
parent
eb08b6d904
commit
b71c53a4f8
4 changed files with 5 additions and 4 deletions
3
index.js
3
index.js
|
|
@ -17,7 +17,8 @@ const run = async () => {
|
|||
}
|
||||
}
|
||||
|
||||
await import('./src/index.js')();
|
||||
const mod = await import('./src/index.js');
|
||||
await mod.default();
|
||||
};
|
||||
|
||||
run().catch(console.error);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import * as core from '@actions/core';
|
||||
import stringToJson from '@cycjimmy/awesome-js-funcs/cjs/typeConversion/stringToJson.cjs';
|
||||
import inputs from './inputs.json';
|
||||
import inputs from './inputs.json' with { type: 'json' };;
|
||||
|
||||
/**
|
||||
* Handle Branches Option
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import installSpecifyingVersionSemantic from './installSpecifyingVersionSemantic
|
|||
import preInstall from './preInstall.task';
|
||||
import cleanupNpmrc from './cleanupNpmrc.task';
|
||||
import windUpJob from './windUpJob.task';
|
||||
import inputs from './inputs.json';
|
||||
import inputs from './inputs.json' with { type: 'json' };;
|
||||
|
||||
/**
|
||||
* Release main task
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import * as core from '@actions/core';
|
||||
import exec from './_exec';
|
||||
import inputs from './inputs.json';
|
||||
import inputs from './inputs.json' with { type: 'json' };;
|
||||
import path, {dirname} from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue