Skip to content

Commit 44ed39b

Browse files
committed
chore: update import statements to use .js extension and fix simple-git import syntax
1 parent 4a46350 commit 44ed39b

File tree

9 files changed

+12
-16
lines changed

9 files changed

+12
-16
lines changed

package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
"todo-driven"
1414
],
1515
"license": "MIT",
16-
"files": [
17-
"dist"
18-
],
16+
"files": ["dist"],
1917
"type": "module",
2018
"bin": {
2119
"git-intent": "./dist/index.js"
@@ -38,9 +36,7 @@
3836
"test:ui": "vitest --ui"
3937
},
4038
"pkg": {
41-
"assets": [
42-
"dist/**/*"
43-
],
39+
"assets": ["dist/**/*"],
4440
"outputPath": "build"
4541
},
4642
"dependencies": {

src/commands/reset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { storage } from '@/utils/storage';
1+
import { storage } from '@/utils/storage.js';
22
import { Command } from 'commander';
33
import prompts from 'prompts';
44

src/commands/start.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getCurrentBranch } from '@/utils/git';
1+
import { getCurrentBranch } from '@/utils/git.js';
22
import { storage } from '@/utils/storage.js';
33
import chalk from 'chalk';
44
import { Command } from 'commander';

src/commands/tests/create.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { storage } from '@/utils/storage';
1+
import { storage } from '@/utils/storage.js';
22
import { describe, expect, test } from 'vitest';
3-
import { runCLI } from './test-utils';
3+
import { runCLI } from './test-utils.js';
44

55
describe('create command', () => {
66
test('should create a new intentional commit', async () => {

src/commands/tests/setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { afterAll, beforeAll } from 'vitest';
2-
import { testEnvironment } from './test-environment';
2+
import { testEnvironment } from './test-environment.js';
33

44
beforeAll(async () => {
55
await testEnvironment.setup();

src/commands/tests/start.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { storage } from '@/utils/storage';
1+
import { storage } from '@/utils/storage.js';
22
import { describe, expect, test } from 'vitest';
3-
import { runCLI } from './test-utils';
3+
import { runCLI } from './test-utils.js';
44

55
describe('start command', () => {
66
test('should start an intentional commit', async () => {

src/commands/tests/test-environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os from 'node:os';
22
import path from 'node:path';
3-
import { storage } from '@/utils/storage';
3+
import { storage } from '@/utils/storage.js';
44
import fs from 'fs-extra';
55
import execa from 'execa';
66

src/commands/tests/test-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { join } from 'node:path';
22
import execa, { type Options } from 'execa';
3-
import { testEnvironment } from './test-environment';
3+
import { testEnvironment } from './test-environment.js';
44

55
export const CLI_PATH = join(__dirname, '../../../dist/index.js');
66

src/utils/git.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import simpleGit from 'simple-git';
1+
import { simpleGit } from 'simple-git';
22

33
export const createGit = (cwd?: string) => simpleGit(cwd);
44

0 commit comments

Comments
 (0)