Skip to content

Commit

Permalink
refactoring files
Browse files Browse the repository at this point in the history
  • Loading branch information
sinzii committed Jan 26, 2025
1 parent 9b80685 commit 034af45
Show file tree
Hide file tree
Showing 68 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/create-typink/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "src/index.ts",
"type": "module",
"scripts": {
"build": "tsc --project tsconfig.build.json && cp -R ./bin ./dist",
"build": "tsc --project tsconfig.build.json && cp -R ./bin ./dist && cp -R ./src/templates ./dist",
"clean": "rm -rf ./dist && rm -rf ./tsconfig.tsbuildinfo ./tsconfig.build.tsbuildinfo"
},
"bin": "./bin/create-typink.mjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-typink/src/createProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export async function createProject(options: Options) {
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

const templateDirectory = path.resolve(__dirname, '../templates');
const templateDirectory = path.resolve(__dirname, './templates');
const targetDirectory = path.resolve(process.cwd(), projectName!);

const tasks = new Listr(
Expand Down
2 changes: 1 addition & 1 deletion packages/create-typink/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "./tsconfig.json",
"exclude": ["**/__tests__/*", "./templates/*"]
"exclude": ["**/__tests__/*", "src/templates/**/*"]
}
1 change: 1 addition & 0 deletions packages/create-typink/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
"jsx": "react-jsx"
},
"include": ["src/**/*"],
"exclude": ["src/templates/**/*"]
}

0 comments on commit 034af45

Please sign in to comment.