Skip to content

Commit

Permalink
fix: Fixes imports to be correct for esm
Browse files Browse the repository at this point in the history
  • Loading branch information
davelosert authored Aug 23, 2024
1 parent 6c7380c commit 72c32ff
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion lib/git.js
Original file line number Diff line number Diff line change
@@ -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);

Expand Down
2 changes: 1 addition & 1 deletion lib/publish.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { resolveTags } from './resolveTags';
import { resolveTags } from './resolveTags.js';

function createPublish(git) {
return async (pluginConfig, context) => {
Expand Down
2 changes: 1 addition & 1 deletion lib/publish.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, it, expect, vi } from 'vitest';
import { createPublish } from './publish';
import { createPublish } from './publish.js';

describe('publish()', () => {
const createMockedPublish = () => {
Expand Down
2 changes: 1 addition & 1 deletion lib/resolveTags.test.js
Original file line number Diff line number Diff line change
@@ -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', () => {
Expand Down

0 comments on commit 72c32ff

Please sign in to comment.