Skip to content

Commit

Permalink
fix: fix __dirname
Browse files Browse the repository at this point in the history
  • Loading branch information
markthree committed Jan 29, 2024
1 parent 4495016 commit 4bced82
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
#!/usr/bin/env node
import { glob } from "fast-glob";
import { resolve } from "path";
import { dirname, resolve } from "path";
import { cyan } from "kolorist";
import { createConsola } from "consola";
import { copy } from "fs-extra";
import { existsSync } from "fs";
import { execSync } from "child_process";
import { fixPackageJson } from "node-sass-version-fix";
import { syncGitignore, syncNpmrc } from "./sync";
import { fileURLToPath } from "url";

const log = createConsola().withTag("n-init-project");

const _dirname = dirname(fileURLToPath(import.meta.url));

async function init() {
const projectsDir = resolve(__dirname, "../projects");

Expand Down

0 comments on commit 4bced82

Please sign in to comment.