Skip to content

Commit

Permalink
Add @ symbol breaker on @nestia/migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
samchon committed Sep 23, 2024
1 parent f33249a commit 58c1d93
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/migrate/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/migrate/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestia/migrate",
"version": "0.18.1",
"version": "0.18.2",
"description": "Migration program from swagger to NestJS",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/migrate/src/internal/MigrateCommander.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export namespace MigrateCommander {

// VALIDATE OUTPUT DIRECTORY
const parent: string = resolve(options.output + "/..")!;
if (fs.existsSync(options.output)) halt("Output directory alreay exists.");
if (fs.existsSync(options.output)) halt("Output directory already exists.");
else if (fs.existsSync(parent) === false)
halt("Output directory's parent directory does not exist.");
else if (fs.statSync(parent).isDirectory() === false)
Expand Down
4 changes: 2 additions & 2 deletions packages/migrate/src/test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ const execute =
fs.promises.writeFile(file, await beautify(content), "utf-8"),
})(directory)(files);
cp.execSync(`npx tsc -p ${directory}/tsconfig.json`, {
stdio: "inherit",
stdio: "ignore",
cwd: directory,
});
cp.execSync(`npx tsc -p ${directory}/test/tsconfig.json`, {
stdio: "inherit",
stdio: "ignore",
cwd: directory,
});
},
Expand Down
1 change: 1 addition & 0 deletions packages/migrate/src/utils/StringUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ const RESERVED: Set<string> = new Set([
const VARIABLE_REPLACERS: [string, string][] = [
["`", "_backquote_"],
["!", "_exclamation_"],
["@", "_at_"],
["#", "_hash_"],
["$", "_dollar_"],
["%", "_percent_"],
Expand Down
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@mui/icons-material": "5.15.6",
"@mui/material": "5.15.6",
"@mui/system": "5.15.6",
"@nestia/migrate": "^0.18.1",
"@nestia/migrate": "^0.18.2",
"@samchon/openapi": "^1.0.2",
"@stackblitz/sdk": "^1.9.0",
"js-yaml": "^4.1.0",
Expand Down

0 comments on commit 58c1d93

Please sign in to comment.