Skip to content

Commit

Permalink
bugfix: Reverted the default addon location
Browse files Browse the repository at this point in the history
  • Loading branch information
ijlee2 committed Aug 20, 2024
1 parent d5c923b commit 6669f8e
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions packages/blueprints-addon/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ From the workspace root, run the `new` command to create a package in `packages`
```sh
pnpm addon new <name> [options]

# Example: Create the addon `ui/form`
pnpm addon new ui/form
# Example: Create the addon `ui-form`
pnpm addon new ui-form

# Example: Specify the location
# Example: Specify the location for a scoped package
pnpm addon new @my-org-ui/form --location ui/form
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function createOptions(codemodOptions: CodemodOptions): Options {
const dasherizedName = dasherize(name);
const pascalCaseName = pascalCase(name);

const addonLocation = join('packages', location ?? name);
const addonLocation = join('packages', location ?? dasherize(name));
const addonLocationInverse = relative(addonLocation, '.');

return {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-v2-addon-repo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ git push -u origin main
Step 3. Use the `new` command to start creating addons.

```sh
pnpm addon new ui/form
pnpm addon new @my-org-ui/form --location ui/form
```


Expand Down
4 changes: 2 additions & 2 deletions packages/create-v2-addon-repo/src/blueprints/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ From the workspace root, run the `new` command to create a package in `packages`
```sh
pnpm addon new <name> [options]

# Example: Create the addon `ui/form`
pnpm addon new ui/form
# Example: Create the addon `ui-form`
pnpm addon new ui-form

# Example: Specify the location
pnpm addon new @my-org-ui/form --location ui/form
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ From the workspace root, run the `new` command to create a package in `packages`
```sh
pnpm addon new <name> [options]

# Example: Create the addon `ui/form`
pnpm addon new ui/form
# Example: Create the addon `ui-form`
pnpm addon new ui-form

# Example: Specify the location
# Example: Specify the location for a scoped package
pnpm addon new @my-org-ui/form --location ui/form
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function createOptions(codemodOptions: CodemodOptions): Options {
const dasherizedName = dasherize(name);
const pascalCaseName = pascalCase(name);

const addonLocation = join('packages', location ?? name);
const addonLocation = join('packages', location ?? dasherize(name));
const addonLocationInverse = relative(addonLocation, '.');

return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ From the workspace root, run the `new` command to create a package in `packages`
```sh
pnpm addon new <name> [options]

# Example: Create the addon `ui/form`
pnpm addon new ui/form
# Example: Create the addon `ui-form`
pnpm addon new ui-form

# Example: Specify the location
pnpm addon new @my-org-ui/form --location ui/form
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ From the workspace root, run the `new` command to create a package in `packages`
```sh
pnpm addon new <name> [options]

# Example: Create the addon `ui/form`
pnpm addon new ui/form
# Example: Create the addon `ui-form`
pnpm addon new ui-form

# Example: Specify the location
# Example: Specify the location for a scoped package
pnpm addon new @my-org-ui/form --location ui/form
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function createOptions(codemodOptions: CodemodOptions): Options {
const dasherizedName = dasherize(name);
const pascalCaseName = pascalCase(name);

const addonLocation = join('packages', location ?? name);
const addonLocation = join('packages', location ?? dasherize(name));
const addonLocationInverse = relative(addonLocation, '.');

return {
Expand Down

0 comments on commit 6669f8e

Please sign in to comment.