@jordanalec/dtk 1.0.4 → 1.0.5

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,7 +5,7 @@ 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', 'tsconfig.json', 'tsconfig.test.json', 'jest.config.ts', 'README.md', 'GUIDE.md'];
8
+ const ROOT_FILES = ['.env.template', 'tsconfig.json', 'tsconfig.test.json', 'jest.config.cjs', '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
  .argument('[name]', 'project name (defaults to the current directory name)')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jordanalec/dtk",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "CLI scaffolding tool for generating self-contained TypeScript runbook projects",
5
5
  "keywords": [
6
6
  "cli",
@@ -1,10 +1,8 @@
1
- import type { Config } from 'jest';
2
-
3
- const config: Config = {
1
+ /** @type {import('jest').Config} */
2
+ const config = {
4
3
  preset: 'ts-jest',
5
4
  testEnvironment: 'node',
6
5
  moduleNameMapper: {
7
- // source files use .js extensions in imports; map them to .ts for jest
8
6
  '^(\\.{1,2}/.*)\\.js$': '$1',
9
7
  },
10
8
  transform: {
@@ -16,4 +14,4 @@ const config: Config = {
16
14
  testMatch: ['**/*.test.ts'],
17
15
  };
18
16
 
19
- export default config;
17
+ module.exports = config;
@@ -4,7 +4,7 @@
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "runbook:example": "tsx src/runbooks/example.ts",
7
- "test": "node node_modules/jest/bin/jest.js"
7
+ "test": "jest"
8
8
  },
9
9
  "dependencies": {
10
10
  "axios": "^1.6.0",