Skip to content

Commit

Permalink
fix: do not replace @NativeScript scope for plugin tools commands (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebj54 authored Jul 23, 2024
1 parent 9667c86 commit 84839d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/plugin-tools/src/generators/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ export default async function (tree: Tree, schema: Schema) {

const workspaceScriptsPath = `tools/workspace-scripts.js`;
let workspaceScripts = tree.read(workspaceScriptsPath).toString('utf-8');
workspaceScripts = workspaceScripts.replace(/@nativescript/gm, `${customNpmScope}`);
workspaceScripts = workspaceScripts.replace(/@nativescript/gm, `${customNpmScope}`)
.replace(new RegExp(`${customNpmScope}/plugin-tools:`, 'gm'), `@nativescript/plugin-tools:`);
// context.logger.info(travisContent);
tree.write(workspaceScriptsPath, workspaceScripts);

Expand Down

0 comments on commit 84839d6

Please sign in to comment.