Monorepo Utils: Fix permisions (#37670)
This commit is contained in:
parent
0247cea4b9
commit
8784d7c27a
|
@ -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",
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
const { program } = require( '../dist/index' );
|
||||
|
||||
program.parse( process.argv );
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue