create-commandkit 1.1.4-dev.20250622021922 → 1.1.4-dev.20250622060438

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,8 @@
1
1
  import fs from 'fs-extra';
2
2
  import path from 'node:path';
3
- import url from 'node:url';
4
- const __dirname = path.dirname(url.fileURLToPath(import.meta.url));
5
3
  const templates = {
6
- js: path.join(__dirname, '..', 'templates', 'JavaScript'),
7
- ts: path.join(__dirname, '..', 'templates', 'TypeScript'),
4
+ js: path.join(import.meta.dirname, '..', '..', 'templates', 'JavaScript'),
5
+ ts: path.join(import.meta.dirname, '..', '..', 'templates', 'TypeScript'),
8
6
  };
9
7
  const gitignore = `
10
8
  # dependencies
@@ -1,7 +1,7 @@
1
1
  import { execSync } from 'child_process';
2
2
  import fs from 'fs-extra';
3
3
  import path from 'node:path';
4
- import { commands } from '../utils';
4
+ import { commands } from '../utils.js';
5
5
  export async function setup({ manager, token, dir, stdio = 'pipe', }) {
6
6
  await fs.emptyDir(dir);
7
7
  execSync(commands.init[manager], { cwd: dir, stdio });
package/dist/index.js CHANGED
@@ -6,10 +6,10 @@ import gradient from 'gradient-string';
6
6
  import { execSync } from 'node:child_process';
7
7
  import path from 'node:path';
8
8
  import colors from 'picocolors';
9
- import { copyTemplates } from './functions/copyTemplates';
10
- import { installDeps } from './functions/installDeps';
11
- import { setup } from './functions/setup';
12
- import { textColors } from './utils';
9
+ import { copyTemplates } from './functions/copyTemplates.js';
10
+ import { installDeps } from './functions/installDeps.js';
11
+ import { setup } from './functions/setup.js';
12
+ import { textColors } from './utils.js';
13
13
  const commandkitGradient = gradient(textColors.commandkit)('CommandKit');
14
14
  intro(`Welcome to ${commandkitGradient}!`);
15
15
  const dir = path.resolve(process.cwd(), (await text({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-commandkit",
3
3
  "description": "Effortlessly create a CommandKit project",
4
- "version": "1.1.4-dev.20250622021922",
4
+ "version": "1.1.4-dev.20250622060438",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
7
7
  "bin": "./dist/index.js",
@@ -39,7 +39,7 @@
39
39
  "@types/gradient-string": "^1.1.5",
40
40
  "@types/node": "^22.0.0",
41
41
  "typescript": "^5.3.3",
42
- "tsconfig": "0.0.0-dev.20250622021922"
42
+ "tsconfig": "0.0.0-dev.20250622060438"
43
43
  },
44
44
  "scripts": {
45
45
  "lint": "tsc --noEmit",