diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d8429034..1a5ff8df 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,7 +48,7 @@ jobs: run: npm run compile --prefix webpack-plugin - name: Package using webpack plugin - run: npm run smoketest --prefix webpack-plugin + run: npm run package-for-smoketest --prefix webpack-plugin - name: Run smoke test run: npm run smoketest diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8135b6bc..a4112039 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -197,7 +197,7 @@ jobs: - name: (monaco-editor) Package using webpack plugin if: ${{ steps.state.outputs.skip_monaco_editor == 'false' }} working-directory: './monaco-editor' - run: npm run smoketest --prefix webpack-plugin + run: npm run package-for-smoketest --prefix webpack-plugin - name: (monaco-editor) Run smoke test if: ${{ steps.state.outputs.skip_monaco_editor == 'false' }} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 30205175..cb9019f2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -73,7 +73,7 @@ Open [http://localhost:8080/monaco-editor/test/manual/?editor=src](http://localh /src/monaco-editor> npm run compile --prefix webpack-plugin # package using the webpack plugin -/src/monaco-editor> npm run smoketest --prefix webpack-plugin +/src/monaco-editor> npm run package-for-smoketest --prefix webpack-plugin # run the smoketest /src/monaco-editor> npm run smoketest-debug diff --git a/build/releaseMetadata.js b/build/releaseMetadata.js index 555d251d..46fba408 100644 --- a/build/releaseMetadata.js +++ b/build/releaseMetadata.js @@ -245,8 +245,21 @@ function getFeatures() { /** @type {{label:string;entry:any;}[]} */ let result = features.map((feature) => { + /** @type {string} */ let label; + if (customFeatureLabels[feature]) { + label = customFeatureLabels[feature]; + } else { + const m1 = feature.match(/^vs\/editor\/contrib\/([^\/]+)/); + if (m1) { + // for editor/contrib features, use the first segment + label = m1[1]; + } else { + // for everything else, use the last segment folder + label = path.basename(path.dirname(feature)); + } + } return { - label: customFeatureLabels[feature] || path.basename(path.dirname(feature)), + label: label, entry: feature }; }); diff --git a/webpack-plugin/package.json b/webpack-plugin/package.json index af241bc5..3345f409 100644 --- a/webpack-plugin/package.json +++ b/webpack-plugin/package.json @@ -5,7 +5,7 @@ "main": "out/index.js", "typings": "./out/index.d.ts", "scripts": { - "smoketest": "node ./node_modules/webpack/bin/webpack.js --config smoketest/webpack.config.js --progress", + "package-for-smoketest": "node ./node_modules/webpack/bin/webpack.js --config smoketest/webpack.config.js --progress", "smoketest-cross-origin": "node ./node_modules/webpack/bin/webpack.js --config smoketest/webpack-cross-origin.config.js --progress", "watch": "tsc -w -p tsconfig.json", "compile": "tsc -p tsconfig.json",