@dword-design/base 10.1.2 → 10.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -34,6 +34,76 @@ Object {
|
|
|
34
34
|
}
|
|
35
35
|
`;
|
|
36
36
|
|
|
37
|
+
exports[`index custom config 1`] = `
|
|
38
|
+
Object {
|
|
39
|
+
"extends": Array [
|
|
40
|
+
":semanticCommits",
|
|
41
|
+
":semanticPrefixFix",
|
|
42
|
+
],
|
|
43
|
+
"foo": "bar",
|
|
44
|
+
"github-actions": Object {
|
|
45
|
+
"enabled": false,
|
|
46
|
+
},
|
|
47
|
+
"labels": Array [
|
|
48
|
+
"maintenance",
|
|
49
|
+
],
|
|
50
|
+
"lockFileMaintenance": Object {
|
|
51
|
+
"automerge": true,
|
|
52
|
+
"enabled": true,
|
|
53
|
+
"semanticCommitType": "chore",
|
|
54
|
+
},
|
|
55
|
+
"rangeStrategy": "replace",
|
|
56
|
+
"regexManagers": Array [
|
|
57
|
+
Object {
|
|
58
|
+
"datasourceTemplate": "github-tags",
|
|
59
|
+
"fileMatch": Array [
|
|
60
|
+
"\\\\.js$",
|
|
61
|
+
],
|
|
62
|
+
"matchStrings": Array [
|
|
63
|
+
"(^|\\\\s)gitHubAction\`(?<depName>.*?)@v(?<currentValue>.*?)\`",
|
|
64
|
+
],
|
|
65
|
+
"versioningTemplate": "npm",
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
"semanticCommitScope": null,
|
|
69
|
+
}
|
|
70
|
+
`;
|
|
71
|
+
|
|
72
|
+
exports[`index custom config array 1`] = `
|
|
73
|
+
Object {
|
|
74
|
+
"extends": Array [
|
|
75
|
+
":semanticCommits",
|
|
76
|
+
":semanticPrefixFix",
|
|
77
|
+
],
|
|
78
|
+
"github-actions": Object {
|
|
79
|
+
"enabled": false,
|
|
80
|
+
},
|
|
81
|
+
"labels": Array [
|
|
82
|
+
"maintenance",
|
|
83
|
+
"foo",
|
|
84
|
+
],
|
|
85
|
+
"lockFileMaintenance": Object {
|
|
86
|
+
"automerge": true,
|
|
87
|
+
"enabled": true,
|
|
88
|
+
"semanticCommitType": "chore",
|
|
89
|
+
},
|
|
90
|
+
"rangeStrategy": "replace",
|
|
91
|
+
"regexManagers": Array [
|
|
92
|
+
Object {
|
|
93
|
+
"datasourceTemplate": "github-tags",
|
|
94
|
+
"fileMatch": Array [
|
|
95
|
+
"\\\\.js$",
|
|
96
|
+
],
|
|
97
|
+
"matchStrings": Array [
|
|
98
|
+
"(^|\\\\s)gitHubAction\`(?<depName>.*?)@v(?<currentValue>.*?)\`",
|
|
99
|
+
],
|
|
100
|
+
"versioningTemplate": "npm",
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
"semanticCommitScope": null,
|
|
104
|
+
}
|
|
105
|
+
`;
|
|
106
|
+
|
|
37
107
|
exports[`index lock file commit type 1`] = `
|
|
38
108
|
Object {
|
|
39
109
|
"extends": Array [
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import deepmerge from 'deepmerge';
|
|
1
2
|
export default function () {
|
|
2
|
-
return {
|
|
3
|
+
return deepmerge({
|
|
3
4
|
extends: [':semanticCommits', ':semanticPrefixFix'],
|
|
4
5
|
'github-actions': {
|
|
5
6
|
enabled: false
|
|
@@ -20,5 +21,5 @@ export default function () {
|
|
|
20
21
|
versioningTemplate: 'npm'
|
|
21
22
|
}],
|
|
22
23
|
semanticCommitScope: null
|
|
23
|
-
};
|
|
24
|
+
}, this.config.renovateConfig || {});
|
|
24
25
|
}
|
package/dist/index.js
CHANGED
|
@@ -43,14 +43,14 @@ import getGitInfo from "./get-git-info/index.js";
|
|
|
43
43
|
const _require = createRequire(import.meta.url);
|
|
44
44
|
const babelConfig = _require('@dword-design/babel-config');
|
|
45
45
|
const mergeConfigs = (...configs) => {
|
|
46
|
-
var _result$eslintConfig
|
|
46
|
+
var _result$eslintConfig;
|
|
47
47
|
const result = deepmerge.all(configs, {
|
|
48
48
|
customMerge: key => key === 'supportedNodeVersions' ? (a, b) => b : undefined
|
|
49
49
|
});
|
|
50
|
-
if (((_result$eslintConfig = result.eslintConfig) === null || _result$eslintConfig === void 0
|
|
51
|
-
var _ref, _result$eslintConfig
|
|
50
|
+
if (((_result$eslintConfig = result.eslintConfig) === null || _result$eslintConfig === void 0 || (_result$eslintConfig = _result$eslintConfig.rules) === null || _result$eslintConfig === void 0 || (_result$eslintConfig = _result$eslintConfig['import/no-unresolved']) === null || _result$eslintConfig === void 0 ? void 0 : _result$eslintConfig.length) > 0) {
|
|
51
|
+
var _ref, _result$eslintConfig$;
|
|
52
52
|
result.eslintConfig.rules['import/no-unresolved'] = ['error', {
|
|
53
|
-
ignore: (_ref = (_result$eslintConfig$
|
|
53
|
+
ignore: (_ref = (_result$eslintConfig$ = result.eslintConfig.rules['import/no-unresolved'], filter(setting => typeof setting === 'object')(_result$eslintConfig$)), flatMap(setting => setting.ignore)(_ref))
|
|
54
54
|
}];
|
|
55
55
|
}
|
|
56
56
|
return result;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dword-design/base",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.4",
|
|
4
4
|
"description": "Base package for projects.",
|
|
5
5
|
"repository": "dword-design/base",
|
|
6
6
|
"funding": "https://github.com/sponsors/dword-design",
|
|
@@ -101,13 +101,5 @@
|
|
|
101
101
|
},
|
|
102
102
|
"publishConfig": {
|
|
103
103
|
"access": "public"
|
|
104
|
-
},
|
|
105
|
-
"baseConfig": {
|
|
106
|
-
"name": "@dword-design/node",
|
|
107
|
-
"depcheckConfig": {
|
|
108
|
-
"ignoreMatches": [
|
|
109
|
-
"husky"
|
|
110
|
-
]
|
|
111
|
-
}
|
|
112
104
|
}
|
|
113
105
|
}
|