Skip to content

Commit

Permalink
TS fixes from merge
Browse files Browse the repository at this point in the history
  • Loading branch information
kjvalencik committed Feb 19, 2022
1 parent 239aef4 commit 5219fc5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion create-neon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"dist/data/**/*"
],
"scripts": {
"build": "tsc && cp -r data/templates dist/data",
"build": "tsc --skipLibCheck && cp -r data/templates dist/data",
"prepublishOnly": "npm run build",
"pretest": "npm install && npm run build",
"test": "mocha",
Expand Down
6 changes: 3 additions & 3 deletions create-neon/src/bin/create-neon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async function main(name: string) {
await fs.rmdir(name);

tmpFolderName = await fs.mkdtemp(`${name}-`);
} catch (err) {
} catch (err: any) {
await die(`Could not create \`${name}\`: ${err.message}`, tmpFolderName);
}

Expand All @@ -48,7 +48,7 @@ async function main(name: string) {
try {
pkg = await Package.create(name, tmpFolderName);
await fs.mkdir(path.join(tmpFolderName, "src"));
} catch (err) {
} catch (err: any) {
await die("Could not create `package.json`: " + err.message, tmpFolderName);
}
if (pkg) {
Expand All @@ -63,7 +63,7 @@ async function main(name: string) {

try {
await fs.rename(tmpFolderName, name);
} catch (err) {
} catch (err: any) {
await die(`Could not create \`${name}\`: ${err.message}`, tmpFolderName);
}
console.log(`✨ Created Neon project \`${name}\`. Happy 🦀 hacking! ✨`);
Expand Down
3 changes: 2 additions & 1 deletion create-neon/src/shell.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { spawn } from "child_process";
import { promises as fs } from "fs";
import path from "path";

/**
* Transparently shell out to an executable with a list of arguments.
* All stdio is inherited directly from the current process.
Expand Down Expand Up @@ -38,7 +39,7 @@ export default function shell(
if ([description, author, license].includes(undefined)) {
reject(Error(`error code: ${code}`));
}
} catch (e) {
} catch (e: any) {
reject(e);
}
}
Expand Down
2 changes: 1 addition & 1 deletion create-neon/test/create-neon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe("Project creation", () => {
"license:": "",
"Is this OK?": "",
});
} catch (error) {
} catch (error: any) {
assert.fail("create-neon unexpectedly failed: " + error.message);
}

Expand Down

0 comments on commit 5219fc5

Please sign in to comment.