Skip to content

Commit a6ead87

Browse files
committed
2 parents 8868e9e + bcadd75 commit a6ead87

File tree

3 files changed

+6
-42
lines changed

3 files changed

+6
-42
lines changed

package-lock.json

Lines changed: 2 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-expression-lib",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "A CLI to create After Effects expression libraries, in TypeScript",
55
"main": "src/index.js",
66
"bin": {

src/main.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,9 @@ export async function createProject(options) {
6666
fs.mkdirSync(options.folderName);
6767
}
6868

69-
const currentFileUrl = import.meta.url;
7069
const templateDir = path.resolve(
71-
new URL(currentFileUrl).pathname,
72-
"../../templates",
70+
__dirname,
71+
"../templates",
7372
options.template.toLowerCase()
7473
);
7574
options.templateDirectory = templateDir;
@@ -109,6 +108,6 @@ export async function createProject(options) {
109108
]);
110109

111110
await tasks.run();
112-
console.log("%s Project ready", chalk.green.bold("DONE"));
111+
console.log("%s Project ready", chalk.bgGreen.bold("DONE"));
113112
return true;
114113
}

0 commit comments

Comments
 (0)