Skip to content

Commit

Permalink
Refactor: Hopefully fix the dist folder output
Browse files Browse the repository at this point in the history
  • Loading branch information
gmickel committed May 18, 2023
1 parent 5a1d58b commit e1748a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"lint:fix": "npm run lint --fix",
"format": "prettier --write \"**/*.ts\"",
"format:check": "prettier --list-different \"**/*.ts\"",
"update-readme": "tsx -r dotenv/config updateReadme.ts"
"update-readme": "tsx -r dotenv/config src/updateReadme.ts"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion updateReadme.ts → src/updateReadme.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'fs';
import path from 'path';
import { getProjectRoot } from './src/config/index.js';
import { getProjectRoot } from './config/index.js';

const projectRootDir = getProjectRoot();

Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "@tsconfig/recommended",
"compilerOptions": {
"outDir": "dist",
"rootDir": "src",
"lib": ["ES2021", "ES2022.Object", "DOM", "ES2021.String"],
"target": "es2021",
"module": "NodeNext",
Expand All @@ -19,5 +20,5 @@
"strictPropertyInitialization": false
},
"exclude": ["node_modules/", "dist/", "tests/", "docs/", "db/", "memory/", "tmp/"],
"include": ["./src", "./src/lib", "./src/utils", "./src/global.d.ts", "./updateReadme.ts"]
"include": ["./src", "./src/lib", "./src/utils", "./src/global.d.ts", "src/updateReadme.ts"]
}

0 comments on commit e1748a7

Please sign in to comment.