From 28d69ec026300a09781d061c2f5437e6ea4b118e Mon Sep 17 00:00:00 2001 From: Scott Trinh Date: Thu, 4 Jan 2024 10:51:56 -0500 Subject: [PATCH] Call `copyTemplateFiles` with correct arguments (#819) --- .github/workflows/tests.yml | 4 ++++ packages/create/package.json | 9 ++++----- packages/create/src/recipes/_edgedb/index.ts | 6 +----- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4654c6680..43e9ce1a8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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: diff --git a/packages/create/package.json b/packages/create/package.json index 29f388940..df395f894 100644 --- a/packages/create/package.json +++ b/packages/create/package.json @@ -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", @@ -33,6 +31,7 @@ }, "scripts": { "create": "tsx src/cli.ts", - "build": "tsc" + "build": "tsc", + "test": "tsc --noEmit" } } diff --git a/packages/create/src/recipes/_edgedb/index.ts b/packages/create/src/recipes/_edgedb/index.ts index 47e29dd21..d63fb3262 100644 --- a/packages/create/src/recipes/_edgedb/index.ts +++ b/packages/create/src/recipes/_edgedb/index.ts @@ -106,11 +106,7 @@ const recipe: Recipe = { 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) {