Skip to content

Commit 6524622

Browse files
committed
refactor(plugin): ✨ update import paths to include file extensions
1 parent df0031c commit 6524622

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

packages/create-vitnode-app/src/plugin/create/create-plugin-vitnode.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ export const createPluginVitNode = async ({
7676
"..",
7777
"..",
7878
"..",
79+
"..",
7980
"copy-of-vitnode-app",
8081
"eslint-react",
8182
);

packages/vitnode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
"@vitnode/config": "workspace:*",
5454
"chokidar": "^4.0.3",
5555
"concurrently": "^9.2.1",
56-
"dotenv": "^17.2.3",
5756
"drizzle-kit": "^0.31.6",
5857
"drizzle-orm": "^0.44.7",
5958
"eslint": "^9.39.1",
@@ -121,6 +120,7 @@
121120
"clsx": "^2.1.1",
122121
"cmdk": "^1.1.1",
123122
"cron-parser": "^5.4.0",
123+
"dotenv": "^17.2.3",
124124
"input-otp": "^1.4.2",
125125
"motion": "^12.23.24",
126126
"next-themes": "^0.4.6",

packages/vitnode/scripts/get-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { join } from "node:path";
33
import { pathToFileURL } from "node:url";
44

5-
import type { VitNodeApiConfig, VitNodeConfig } from "../src/vitnode.config";
5+
import type { VitNodeApiConfig, VitNodeConfig } from "../src/vitnode.config.js";
66

77
type ConfigType<T extends "api.config" | "config"> = T extends "config"
88
? VitNodeConfig

packages/vitnode/scripts/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {
1818
isDirectoryEmpty,
1919
routeKey,
2020
type SourceConfig,
21-
} from "./shared/file-utils";
21+
} from "./shared/file-utils.js";
2222

2323
/**
2424
* Helper: detect if an app path is web, api, or null

packages/vitnode/scripts/prepare-plugins-files.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ import { existsSync, readdirSync } from "node:fs";
33
import { readFile } from "node:fs/promises";
44
import { join, relative } from "node:path";
55

6-
import { getConfig } from "./get-config";
6+
import { getConfig } from "./get-config.js";
77
import {
88
buildInitialRouteMap,
99
copyDirectoryRecursive,
1010
findLocaleRoot,
1111
findRepoRoot,
1212
isDirectoryEmpty,
1313
type SourceConfig,
14-
} from "./shared/file-utils";
14+
} from "./shared/file-utils.js";
1515

1616
export const preparePluginsFiles = async (flag?: string) => {
1717
// Detect which config file to load based on flag or auto-detection

pnpm-lock.yaml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)