Skip to content

Commit 72c32ff

Browse files
authored
fix: Fixes imports to be correct for esm
1 parent 6c7380c commit 72c32ff

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { createPublish } from './lib/publish';
2-
import { git } from './lib/git';
1+
import { createPublish } from './lib/publish.js';
2+
import { git } from './lib/git.js';
33

44
const publishTags = createPublish(git);
55
async function publish(pluginConfig, context) {

lib/git.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { promisify } from 'util';
22
import { exec as pureExec } from 'child_process';
3-
import { GitError } from './errors/GitError';
3+
import { GitError } from './errors/GitError.js';
44

55
const exec = promisify(pureExec);
66

lib/publish.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { resolveTags } from './resolveTags';
1+
import { resolveTags } from './resolveTags.js';
22

33
function createPublish(git) {
44
return async (pluginConfig, context) => {

lib/publish.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, it, expect, vi } from 'vitest';
2-
import { createPublish } from './publish';
2+
import { createPublish } from './publish.js';
33

44
describe('publish()', () => {
55
const createMockedPublish = () => {

lib/resolveTags.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, it, expect } from 'vitest';
2-
import { resolveTags } from './resolveTags';
2+
import { resolveTags } from './resolveTags.js';
33

44
describe('resolveTags()', () => {
55
it('given tag v1.0.0, returns array with v1 and v1.0', () => {

0 commit comments

Comments
 (0)