File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 4545
4646 - name : Build
4747 run : npm run build
48+ env :
49+ NODE_ENV : ' production'
4850
4951 - name : Publish
5052 run : |
7678
7779 - name : Build
7880 run : npm run build
81+ env :
82+ NODE_ENV : ' production'
7983
8084 - name : Install MCP Publisher
8185 run : |
Original file line number Diff line number Diff line change 1414 * See the License for the specific language governing permissions and
1515 * limitations under the License.
1616 */
17+ /**
18+ * @fileoverview take from {@link https://github.com/GoogleChromeLabs/chromium-bidi/blob/main/rollup.config.mjs | chromium-bidi}
19+ * and modified to specific requirement.
20+ */
21+
1722import path from 'node:path' ;
1823
1924import commonjs from '@rollup/plugin-commonjs' ;
@@ -22,11 +27,14 @@ import {nodeResolve} from '@rollup/plugin-node-resolve';
2227import cleanup from 'rollup-plugin-cleanup' ;
2328import license from 'rollup-plugin-license' ;
2429
30+ const isProduction = process . env . NODE_ENV === 'production' ;
31+
32+ /** @type {import('rollup').RollupOptions } */
2533const sdk = {
2634 input : './build/src/third_party/modelcontextprotocol-sdk/index.js' ,
2735 output : {
2836 file : './build/src/third_party/modelcontextprotocol-sdk/index.js' ,
29- sourcemap : false ,
37+ sourcemap : ! isProduction ,
3038 format : 'esm' ,
3139 } ,
3240 plugins : [
@@ -37,7 +45,6 @@ const sdk = {
3745 comments : [ / C o p y r i g h t / i] ,
3846 } ) ,
3947 license ( {
40- debug : true ,
4148 thirdParty : {
4249 allow : {
4350 test : dependency => {
You can’t perform that action at this time.
0 commit comments