File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5454 - name : Package extension
5555 env :
5656 NODE_ENV : ${{ inputs.prod || '0' }}
57- run : pnpx @vscode/ vsce package --allow-star-activation --no-dependencies
57+ run : pnpm vsce package --allow-star-activation --no-dependencies
5858
5959 - name : Upload builds
6060 uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change 2727 run : pnpm install --frozen-lockfile
2828
2929 - name : lint check
30- run : pnpx eslint src/
30+ run : pnpm eslint src/
Original file line number Diff line number Diff line change 5252 - name : Publish extension
5353 env :
5454 NODE_ENV : 1
55- run : pnpx @vscode/ vsce publish ${{inputs.version}} -p ${{secrets.MARKETPLACE_TOKEN}} --allow-star-activation --no-dependencies
55+ run : pnpm vsce publish ${{inputs.version}} -p ${{secrets.MARKETPLACE_TOKEN}} --allow-star-activation --no-dependencies
5656
5757 - name : Commit and push version change
5858 run : |
Original file line number Diff line number Diff line change 11pnpm types
2- pnpx eslint
2+ pnpm eslint src/
Original file line number Diff line number Diff line change @@ -63,11 +63,13 @@ switch (mode.toLowerCase()) {
6363 default :
6464 outDir = './out' ;
6565}
66+
67+ const directoryPlural = outDir . length ( ) === 1 || outDir . length ( ) === - 1 ? 'directory' : 'directories' ;
6668if ( fs . existsSync ( outDir ) ) {
67- console . log ( chalk . yellow ( `🗑️ Output directory ${ outDir } already exists, removing dir...` ) ) ;
69+ console . log ( chalk . yellow ( `🗑️ Output ${ directoryPlural } ${ outDir } already exists, removing dir...` ) ) ;
6870 fs . rmSync ( outDir , { recursive : true } ) ;
6971} else {
70- console . log ( chalk . dim ( `📁 Output directory ${ outDir } doesn't exist, skipping removal step.` ) ) ;
72+ console . log ( chalk . dim ( `📁 Output ${ directoryPlural } ${ outDir } doesn't exist, skipping removal step.` ) ) ;
7173}
7274
7375try {
You can’t perform that action at this time.
0 commit comments