Monorepo Utils: Fix permisions (#37670)

This commit is contained in:
Paul Sealock 2023-04-13 07:10:02 +12:00 committed by GitHub
parent 0247cea4b9
commit 8784d7c27a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 6 deletions

View File

@ -18,7 +18,7 @@
"url": "https://github.com/woocommerce/woocommerce/issues"
},
"bin": {
"utils": "./tools/monorepo-utils/dist/index.js"
"utils": "./tools/monorepo-utils/bin/run"
},
"scripts": {
"build": "pnpm exec turbo run turbo:build",
@ -30,7 +30,7 @@
"create-extension": "node ./tools/create-extension/index.js",
"cherry-pick": "node ./tools/cherry-pick/bin/run",
"sync-dependencies": "pnpm exec syncpack -- fix-mismatches",
"utils": "./tools/monorepo-utils/dist/index.js"
"utils": "./tools/monorepo-utils/bin/run"
},
"devDependencies": {
"@babel/preset-env": "^7.20.2",

5
tools/monorepo-utils/bin/run Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env node
const { program } = require( '../dist/index' );
program.parse( process.argv );

View File

@ -1,4 +1,3 @@
#! /usr/bin/env node
/**
* External dependencies
*/
@ -9,9 +8,7 @@ import { Command } from '@commander-js/extra-typings';
*/
import CodeFreeze from './code-freeze/commands';
const program = new Command()
export const program = new Command()
.name( 'utils' )
.description( 'Monorepo utilities' )
.addCommand( CodeFreeze );
program.parse( process.argv );