diff --git a/package.json b/package.json index f550c05..b145b99 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "main": "dist/cli.js", "types": "./dist/cli.d.ts", "scripts": { - "build": "pnpm clean:dist && pnpm transpile && pnpm bundle && pnpm cp:polyfills", + "build": "pnpm clean:dist && pnpm transpile && pnpm bundle && pnpm cp:polyfills && cp -r ./src/templates ./dist", "build:ci": "pnpm run build", "bundle": "ts-node -r dotenv/config bundle.ts", "changeset:add": "pnpm exec changeset", diff --git a/src/utils/configuration/saveConfiguration.ts b/src/utils/configuration/saveConfiguration.ts index 9c3168e..52e48fe 100644 --- a/src/utils/configuration/saveConfiguration.ts +++ b/src/utils/configuration/saveConfiguration.ts @@ -24,12 +24,12 @@ type ConfigFilePath = string; const filePathForTypescriptConfig = path.join( __dirname, - '../../templates/sites/config', + './templates/sites/config', getConfigTemplateByTypeName('Typescript'), ); const filePathForJavascriptConfig = path.join( __dirname, - '../../templates/sites/config', + './templates/sites/config', getConfigTemplateByTypeName('Javascript'), );