Skip to content

Commit a6eea5a

Browse files
authored
fix(build): update compilation script (#3904)
1 parent 8b971a9 commit a6eea5a

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# 提升依赖项到根目录,避免重复安装相同的包
2+
shamefully-hoist=true

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"commitizen": "^4.2.4",
6565
"cross-env": "^7.0.2",
6666
"cz-conventional-changelog": "^3.3.0",
67+
"dayjs": "^1.10.7",
6768
"del": "^6.1.1",
6869
"eslint": "^7.0.0",
6970
"eslint-config-airbnb-base": "^14.2.1",
@@ -120,4 +121,4 @@
120121
"eslint --fix"
121122
]
122123
}
123-
}
124+
}

packages/components/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"devDependencies": {
88
"dayjs": "^1.10.7",
99
"tinycolor2": "^1.4.2",
10+
"tslib": "^2.8.1",
1011
"miniprogram-simulate": "^1.6.0"
1112
}
1213
}

script/gulpfile.base.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const generateConfigReplaceTask = (replaceConfig, options = {}) => {
4545
};
4646

4747
const isComponentFolder = (dir) => {
48-
return dir === 'components';
48+
return dir === 'packages/components';
4949
};
5050

5151
/* return gulpfile base tasks */
@@ -58,7 +58,7 @@ module.exports = (src, dist, moduleName) => {
5858
});
5959

6060
// options
61-
const ignore = ['**/__test__', '**/__test__/**', '**/_example/**', '**/packages/common/**'];
61+
const ignore = ['**/__test__/**', '**/_example/**', '**/node_modules/**'];
6262
const srcOptions = { base: src, ignore };
6363
const watchOptions = { events: ['add', 'change'] };
6464
const gulpErrorPath = 'example/utils/gulpError.js';

0 commit comments

Comments
 (0)