Skip to content

Commit

Permalink
fix: 🐛 Typescript configuration not recognized by sites deploy (#32)
Browse files Browse the repository at this point in the history
## Why?

Typescript configuration not recognized by sites deploy.

## How?

- Done A (replace with a breakdown of the steps)
- Done B
- Done C

## Tickets?

-
[PLAT-1339](https://linear.app/fleekxyz/issue/PLAT-1339/%5Bcli%5D%5Bdeploy%5D-typescript-configuration-files-are-not-recognized-by)

## Contribution checklist?

- [x] The commit messages are detailed
- [x] The `build` command runs locally
- [ ] Assets or static content are linked and stored in the project
- [ ] You have manually tested
- [ ] You have provided tests

## Security checklist?

- [ ] Sensitive data has been identified and is being protected properly
- [ ] Injection has been prevented (parameterized queries, no eval or
system calls)

## Preview?

<img width="819" alt="Screenshot 2024-09-18 at 19 07 51"
src="https://github.com/user-attachments/assets/27a3d071-6b7e-4b1f-903b-8f9962e7bdba">
  • Loading branch information
heldrida authored Sep 20, 2024
1 parent 5d00021 commit 0fd6871
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/utils/configuration/saveConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
);

Expand Down

0 comments on commit 0fd6871

Please sign in to comment.