Skip to content

Commit

Permalink
Call copyTemplateFiles with correct arguments (#819)
Browse files Browse the repository at this point in the history
  • Loading branch information
scotttrinh authored Jan 4, 2024
1 parent 9ebb33d commit 28d69ec
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ jobs:
run: |
yarn workspace edgedb test
- name: Run create-app tests
run: |
yarn workspace @edgedb/create test
# This job exists solely to act as the test job aggregate to be
# targeted by branch policies.
regression-tests:
Expand Down
9 changes: 4 additions & 5 deletions packages/create/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@
},
"license": "Apache-2.0",
"sideEffects": false,
"files": [
"/dist"
],
"bin": "dist/cli.js",
"files": ["/dist"],
"bin": "dist/cli.js",
"peerDependencies": {},
"devDependencies": {
"@types/debug": "^4.1.12",
Expand All @@ -33,6 +31,7 @@
},
"scripts": {
"create": "tsx src/cli.ts",
"build": "tsc"
"build": "tsc",
"test": "tsc --noEmit"
}
}
6 changes: 1 addition & 5 deletions packages/create/src/recipes/_edgedb/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,7 @@ const recipe: Recipe<EdgeDBOptions> = {
logger("Copying basic EdgeDB project files");

const dirname = path.dirname(new URL(import.meta.url).pathname);
await copyTemplateFiles(
path.resolve(dirname, "./template"),
projectDir,
new Set()
);
await copyTemplateFiles(path.resolve(dirname, "./template"), projectDir);
}

if (useEdgeDBAuth) {
Expand Down

0 comments on commit 28d69ec

Please sign in to comment.