diff --git a/index.js b/index.js index 214929b..137a38f 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,5 @@ -import { createPublish } from './lib/publish'; -import { git } from './lib/git'; +import { createPublish } from './lib/publish.js'; +import { git } from './lib/git.js'; const publishTags = createPublish(git); async function publish(pluginConfig, context) { diff --git a/lib/git.js b/lib/git.js index 3a0c8e3..67a215d 100644 --- a/lib/git.js +++ b/lib/git.js @@ -1,6 +1,6 @@ import { promisify } from 'util'; import { exec as pureExec } from 'child_process'; -import { GitError } from './errors/GitError'; +import { GitError } from './errors/GitError.js'; const exec = promisify(pureExec); diff --git a/lib/publish.js b/lib/publish.js index b7c5196..5802030 100644 --- a/lib/publish.js +++ b/lib/publish.js @@ -1,4 +1,4 @@ -import { resolveTags } from './resolveTags'; +import { resolveTags } from './resolveTags.js'; function createPublish(git) { return async (pluginConfig, context) => { diff --git a/lib/publish.test.js b/lib/publish.test.js index 67ff09e..6d0c8dc 100644 --- a/lib/publish.test.js +++ b/lib/publish.test.js @@ -1,5 +1,5 @@ import { describe, it, expect, vi } from 'vitest'; -import { createPublish } from './publish'; +import { createPublish } from './publish.js'; describe('publish()', () => { const createMockedPublish = () => { diff --git a/lib/resolveTags.test.js b/lib/resolveTags.test.js index 7be7b66..85bd29b 100644 --- a/lib/resolveTags.test.js +++ b/lib/resolveTags.test.js @@ -1,5 +1,5 @@ import { describe, it, expect } from 'vitest'; -import { resolveTags } from './resolveTags'; +import { resolveTags } from './resolveTags.js'; describe('resolveTags()', () => { it('given tag v1.0.0, returns array with v1 and v1.0', () => {