@jordanalec/dtk 1.0.1 → 1.0.3

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.
package/dist/init.js CHANGED
@@ -5,16 +5,17 @@ import { fileURLToPath } from 'url';
5
5
  import { execSync } from 'child_process';
6
6
  const __dirname = dirname(fileURLToPath(import.meta.url));
7
7
  const TEMPLATES_DIR = join(__dirname, '../templates');
8
- const ROOT_FILES = ['.env.template', '.gitignore', 'tsconfig.json', 'tsconfig.test.json', 'jest.config.ts', 'package.json', 'README.md', 'GUIDE.md'];
8
+ const ROOT_FILES = ['.env.template', 'tsconfig.json', 'tsconfig.test.json', 'jest.config.ts', 'package.json', 'README.md', 'GUIDE.md'];
9
9
  export const initCommand = new Command('init')
10
10
  .description('Scaffold a new dtk project in the current directory')
11
11
  .action(async () => {
12
12
  const initDir = join(TEMPLATES_DIR, 'init');
13
13
  const dest = process.cwd();
14
14
  await cp(join(initDir, 'src'), join(dest, 'src'), { recursive: true });
15
+ await cp(join(initDir, 'gitignore'), join(dest, '.gitignore'));
15
16
  for (const file of ROOT_FILES) {
16
17
  await cp(join(initDir, file), join(dest, file));
17
18
  }
18
19
  console.log('Project scaffolded. Installing dependencies...');
19
- execSync('npm install', { cwd: dest, stdio: 'inherit' });
20
+ execSync('npm install --no-workspaces', { cwd: dest, stdio: 'inherit' });
20
21
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jordanalec/dtk",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "CLI scaffolding tool for generating self-contained TypeScript runbook projects",
5
5
  "keywords": [
6
6
  "cli",
@@ -0,0 +1,4 @@
1
+ node_modules
2
+ dist
3
+ .env
4
+ .env.local