Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit b3a8dcf

Browse files
committed
fix: broken path to template files
1 parent f67fe59 commit b3a8dcf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"test": "node japaFile.js",
1818
"lint": "tslint --project tsconfig.json",
1919
"clean": "del build",
20-
"compile": "npm run lint && npm run clean && tsc && copyfiles templates/* build",
20+
"compile": "npm run lint && npm run clean && tsc && copyfiles \"templates/**/*.txt\" build",
2121
"build": "npm run compile",
2222
"commit": "git-cz",
2323
"release": "np",
@@ -65,7 +65,7 @@
6565
},
6666
"dependencies": {
6767
"@adonisjs/fold": "^6.1.2",
68-
"@adonisjs/sink": "^2.0.11",
68+
"@adonisjs/sink": "^2.0.12",
6969
"@poppinss/application": "^1.0.7",
7070
"fs-extra": "^8.1.0",
7171
"kleur": "^3.0.3",

tasks/copyTemplates.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default function createPackageFile (basePath: string) {
2727
new TemplateFile(
2828
basePath,
2929
template,
30-
join(__dirname, '..', '../templates', template.replace(/\.ts$/, '.txt')),
30+
join(__dirname, '..', 'templates', template.replace(/\.ts$/, '.txt')),
3131
)
3232
.apply({})
3333
.commit()

0 commit comments

Comments
 (0)