✨(tokens) add the support for Typescript config file
Add the support to load cunningham.ts local config file based on ts-node. Those files will be loaded as CommonJS to preserve to coherence regarding the way the cunningham bin is ran by node.
This commit is contained in:
@@ -11,15 +11,6 @@ jest.mock("../Paths", () => ({
|
||||
workPath: () => __dirname,
|
||||
}));
|
||||
|
||||
jest.mock("../cunningham.dist.js", () => ({
|
||||
theme: {
|
||||
colors: {
|
||||
primary: "#055FD2",
|
||||
secondary: "#DA0000",
|
||||
},
|
||||
},
|
||||
}));
|
||||
|
||||
const runBin = async (args: string) => {
|
||||
const exec = util.promisify(child_process.exec);
|
||||
const promise = exec(
|
||||
|
||||
Reference in New Issue
Block a user