Skip to content

Commit

Permalink
Merge pull request #58 from dlhandsome/fix-navigate-types
Browse files Browse the repository at this point in the history
fix: added types entry
  • Loading branch information
dlhandsome authored Jun 20, 2024
2 parents 0773329 + 015dcac commit 9b9304c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/runtime/plugin-navigate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.31.16",
"description": "navigate plugin for we-debug",
"main": "dist/index.js",
"types": "dist/types.d.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down
4 changes: 3 additions & 1 deletion packages/runtime/plugin-navigate/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ NavigatePlugin.install = function (weDebug, options:IPluginInitOptions) {
rules.push(rule);
});

weDebug.addFormRule(rules);
weDebug.addFormRule(rules, {
group: '快捷入口'
});
};

export default NavigatePlugin;
2 changes: 1 addition & 1 deletion scripts/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const builds = {
base: 'packages/runtime/plugin-navigate/src',
allowEmpty: true
},
scriptsSrc: 'packages/runtime/plugin-navigate/src/**/*.js',
tsSrc: 'packages/runtime/plugin-navigate/src/**/*.ts',
lessSrc: 'packages/runtime/plugin-navigate/src/**/*.less',
copySrc: ['packages/runtime/plugin-navigate/src/**/*.{wxml,json}'],
dest: 'packages/runtime/plugin-navigate/dist/',
Expand Down

0 comments on commit 9b9304c

Please sign in to comment.