Skip to content

Commit 7203e67

Browse files
committed
Move DL scripts to common
1 parent ebea10d commit 7203e67

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

modules/common/package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"private": true,
44
"type": "module",
55
"scripts": {
6+
"dl-store": "tsx scripts/download-firestore.ts",
67
"test:unit": "bun test -t unit",
78
"test:db": "firebase emulators:exec --only firestore --project demo-firestore 'bun test -t db'"
89
},
@@ -14,7 +15,8 @@
1415
},
1516
"devDependencies": {
1617
"@firebase/rules-unit-testing": "^3.0.4",
18+
"@types/node": "^22.13.0",
1719
"firebase-tools": "^13.20.2",
18-
"vite": "^5.4.8"
20+
"tsx": "^4.19.2"
1921
}
2022
}

scripts/download-firestore.ts modules/common/scripts/download-firestore.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import fs from "node:fs";
2-
import { orderRepository } from "common/repositories/order";
1+
import * as fs from "fs";
2+
import { orderRepository } from "repositories/order";
33

44
const orderEntities = await orderRepository.findAll();
55
const orders = orderEntities.map((order) => order.toOrder());

modules/common/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"include": ["env.d.ts", "**/*.ts", "**/*.tsx"],
33
"compilerOptions": {
44
"lib": ["DOM", "DOM.Iterable", "ES2022"],
5-
"types": ["@remix-run/node", "vite/client", "bun-types"],
5+
"types": ["@types/node"],
66
"isolatedModules": true,
77
"esModuleInterop": true,
88
"jsx": "react-jsx",

0 commit comments

Comments
 (0)