Skip to content

Commit d0a7ebf

Browse files
authored
release: v0.2.2 (#5)
### Bug Fixes * enable proper handling of multi-repo projects ([7f95b9b](7f95b9b))
1 parent 9ee044e commit d0a7ebf

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@levimc-lse/scaffold",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"description": "A utility for assisting in the development of Legacy Script Engine plugins.",
55
"bugs": "https://github.com/leoweyr/LegacyScriptEngine_Scaffold/issues",
66
"bin": {

src/cli/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,16 @@ program
5959
try {
6060
const project: TypeScriptProject = TypeScriptProject.getInstance();
6161
const packager: Packager = new Packager(project);
62-
const levilaminaServer: LevilaminaServer = new LevilaminaServer(path);
62+
const leviLaminaServer: LevilaminaServer = new LevilaminaServer(path);
6363
const pluginPackage: PluginPackage = packager.getPluginPackage();
6464

6565
try {
66-
levilaminaServer.removePlugin(project.getName());
66+
leviLaminaServer.removePlugin(project.getName());
6767
} catch (error) {
6868
// Do nothing if the plugin does not exist.
6969
}
7070

71-
const successMessage: string = await levilaminaServer.importPlugin(pluginPackage);
71+
const successMessage: string = await leviLaminaServer.importPlugin(pluginPackage);
7272

7373
logger.success(successMessage);
7474
} catch (error) {

src/deployment/LevilaminaServer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class LevilaminaServer {
2929
}
3030

3131
public removePlugin(pluginName: string): void {
32-
const pluginPath: string = Path.join(this.pluginDirectory, pluginName);
32+
const pluginPath: string = Path.join(this.pluginDirectory, pluginName.replace("/", "-").replace("@",""));
3333

3434
if (File.existsSync(pluginPath)) {
3535
LevilaminaServer.deleteDirectory(pluginPath);

src/packager/Manifest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class Manifest {
3636

3737
public generate(): string {
3838
const nodeJsConfiguration: NodeJsConfiguration = this.project.getNodeJsConfiguration();
39-
const name: string = nodeJsConfiguration.getName();
39+
const name: string = nodeJsConfiguration.getName().replace("/", "-").replace("@", "");
4040
const version: string = nodeJsConfiguration.getVersion();
4141
const absoluteEntry: string = Path.join(this.project.getPath(), nodeJsConfiguration.getMainEntry());
4242
const relativeEntry: string = absoluteEntry.split(`${this.project.getBuiltPath()}\\`).join("");

src/packager/Packager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class Packager {
1616
public constructor(project: Project) {
1717
this.project = project;
1818

19-
const packagePath: string = Path.join(this.project.getPath(), `${this.project.getName()}.zip`);
19+
const packagePath: string = Path.join(this.project.getPath(), `${this.project.getName().replace("/", "-").replace("@", "")}.zip`);
2020
this.pluginPackage = new PluginPackage(this.project.getName(), packagePath);
2121
}
2222

src/packager/PluginPackage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class PluginPackage {
2929
}
3030

3131
const pluginPackage: Unzipper.CentralDirectory = await Unzipper.Open.file(this.filePath);
32-
const extractedPath: string = Path.join(destinationPath, this.name);
32+
const extractedPath: string = Path.join(destinationPath, this.name.replace("/", "-").replace("@", ""));
3333
await pluginPackage.extract({path: extractedPath});
3434
}
3535
}

0 commit comments

Comments
 (0)