[offers][fix] remove prisma/companySeed.ts from tsconfig.json

pull/501/head
Stuart Long Chay Boon 3 years ago
parent ac3052b99a
commit e0f581b609

@ -2,9 +2,18 @@ import reader from 'xlsx';
const file = reader.readFile('prisma/salaries.xlsx'); const file = reader.readFile('prisma/salaries.xlsx');
export const COMPANIES = [] export const COMPANIES: Array<CompanyData> = []
type CompanyData = {
Finalized: string;
description: string;
logoUrl: string;
name: string;
slug: string;
website: string;
};
const temp = reader.utils.sheet_to_json(file.Sheets[file.SheetNames[1]]); const temp = reader.utils.sheet_to_json(file.Sheets[file.SheetNames[1]]);
temp.forEach((res) => { temp.forEach((res: CompanyData) => {
COMPANIES.push(res); COMPANIES.push(res);
}); });

Binary file not shown.

@ -15,5 +15,5 @@
"module": "CommonJS" "module": "CommonJS"
} }
}, },
"include": ["src", "next-env.d.ts", "prisma/companySeed.ts"] "include": ["src", "next-env.d.ts"]
} }

Loading…
Cancel
Save