@itcase/config 1.7.19 → 1.7.21
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.
- package/package.json +1 -1
- package/postcss/hugo.cjs +10 -2
- package/postcss/require.cjs +10 -2
- package/postcss/require.js +10 -2
- package/postcss/requirePackage.cjs +10 -3
- package/semantic-release/semanticReleaseBot.js +5 -0
package/package.json
CHANGED
package/postcss/hugo.cjs
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
// "postcss-nested@8" is ESM; CJS require() returns "{ default: fn }"
|
|
3
4
|
const postcssNested =
|
|
4
5
|
require('postcss-nested').default || require('postcss-nested')
|
|
5
6
|
|
|
7
|
+
// "postcss-combine-duplicated-selectors@v11.0.0" is ESM;
|
|
8
|
+
// CJS require() returns "{ default: fn }", build failed with
|
|
9
|
+
// "Cannot convert object to primitive value"
|
|
10
|
+
const postcssCombineDuplicatedSelectors =
|
|
11
|
+
require('postcss-combine-duplicated-selectors').default ||
|
|
12
|
+
require('postcss-combine-duplicated-selectors')
|
|
13
|
+
|
|
6
14
|
module.exports = {
|
|
7
15
|
plugins: [
|
|
8
16
|
require('postcss-normalize'),
|
|
@@ -60,7 +68,7 @@ module.exports = {
|
|
|
60
68
|
darkSelector: '.dark-theme',
|
|
61
69
|
lightSelector: '.light-theme',
|
|
62
70
|
}),
|
|
63
|
-
|
|
71
|
+
postcssCombineDuplicatedSelectors,
|
|
64
72
|
require('postcss-discard-duplicates'),
|
|
65
73
|
require('postcss-pxtorem')({
|
|
66
74
|
minPixelValue: 0,
|
package/postcss/require.cjs
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
// "postcss-nested@8" is ESM; CJS require() returns "{ default: fn }"
|
|
3
4
|
const postcssNested =
|
|
4
5
|
require('postcss-nested').default || require('postcss-nested')
|
|
5
6
|
|
|
7
|
+
// "postcss-combine-duplicated-selectors@v11.0.0" is ESM;
|
|
8
|
+
// CJS require() returns "{ default: fn }", build failed with
|
|
9
|
+
// "Cannot convert object to primitive value"
|
|
10
|
+
const postcssCombineDuplicatedSelectors =
|
|
11
|
+
require('postcss-combine-duplicated-selectors').default ||
|
|
12
|
+
require('postcss-combine-duplicated-selectors')
|
|
13
|
+
|
|
6
14
|
module.exports = {
|
|
7
15
|
plugins: [
|
|
8
16
|
require('postcss-normalize'),
|
|
@@ -60,7 +68,7 @@ module.exports = {
|
|
|
60
68
|
darkSelector: '.dark-theme',
|
|
61
69
|
lightSelector: '.light-theme',
|
|
62
70
|
}),
|
|
63
|
-
|
|
71
|
+
postcssCombineDuplicatedSelectors,
|
|
64
72
|
require('postcss-discard-duplicates'),
|
|
65
73
|
require('postcss-pxtorem')({
|
|
66
74
|
minPixelValue: 0,
|
package/postcss/require.js
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
// "postcss-nested@8" is ESM; CJS require() returns "{ default: fn }"
|
|
3
4
|
const postcssNested =
|
|
4
5
|
require('postcss-nested').default || require('postcss-nested')
|
|
5
6
|
|
|
7
|
+
// "postcss-combine-duplicated-selectors@v11.0.0" is ESM;
|
|
8
|
+
// CJS require() returns "{ default: fn }", build failed with
|
|
9
|
+
// "Cannot convert object to primitive value"
|
|
10
|
+
const postcssCombineDuplicatedSelectors =
|
|
11
|
+
require('postcss-combine-duplicated-selectors').default ||
|
|
12
|
+
require('postcss-combine-duplicated-selectors')
|
|
13
|
+
|
|
6
14
|
module.exports = {
|
|
7
15
|
plugins: [
|
|
8
16
|
require('postcss-normalize'),
|
|
@@ -53,7 +61,7 @@ module.exports = {
|
|
|
53
61
|
darkSelector: '.dark-theme',
|
|
54
62
|
lightSelector: '.light-theme',
|
|
55
63
|
}),
|
|
56
|
-
|
|
64
|
+
postcssCombineDuplicatedSelectors,
|
|
57
65
|
require('postcss-discard-duplicates'),
|
|
58
66
|
|
|
59
67
|
require('postcss-pxtorem')({
|
|
@@ -3,10 +3,17 @@
|
|
|
3
3
|
// to save the ability to define variables at the project level
|
|
4
4
|
// Only used plugins to import and copy files to dist
|
|
5
5
|
|
|
6
|
-
// postcss-nested@8 is ESM; CJS require() returns { default: fn }
|
|
6
|
+
// "postcss-nested@8" is ESM; CJS require() returns "{ default: fn }"
|
|
7
7
|
const postcssNested =
|
|
8
8
|
require('postcss-nested').default || require('postcss-nested')
|
|
9
9
|
|
|
10
|
+
// "postcss-combine-duplicated-selectors@v11.0.0" is ESM;
|
|
11
|
+
// CJS require() returns "{ default: fn }", build failed with
|
|
12
|
+
// "Cannot convert object to primitive value"
|
|
13
|
+
const postcssCombineDuplicatedSelectors =
|
|
14
|
+
require('postcss-combine-duplicated-selectors').default ||
|
|
15
|
+
require('postcss-combine-duplicated-selectors')
|
|
16
|
+
|
|
10
17
|
module.exports = {
|
|
11
18
|
plugins:
|
|
12
19
|
process.env.NODE_ENV === 'development'
|
|
@@ -56,7 +63,7 @@ module.exports = {
|
|
|
56
63
|
darkSelector: '.dark-theme',
|
|
57
64
|
lightSelector: '.light-theme',
|
|
58
65
|
}),
|
|
59
|
-
|
|
66
|
+
postcssCombineDuplicatedSelectors,
|
|
60
67
|
require('postcss-discard-duplicates'),
|
|
61
68
|
require('postcss-pxtorem')({
|
|
62
69
|
minPixelValue: 0,
|
|
@@ -78,7 +85,7 @@ module.exports = {
|
|
|
78
85
|
require('postcss-nested-ancestors'),
|
|
79
86
|
require('./silenceNestedAncestorsMultiPlaceholder.cjs'),
|
|
80
87
|
postcssNested,
|
|
81
|
-
|
|
88
|
+
postcssCombineDuplicatedSelectors,
|
|
82
89
|
require('postcss-discard-duplicates'),
|
|
83
90
|
],
|
|
84
91
|
}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { createSemanticReleaseConfig } from './common.js'
|
|
2
|
+
import { releaseNotesFromCommitsPlugin } from './releaseNotesFromCommits.js'
|
|
2
3
|
|
|
3
4
|
// Тот же релиз, что у проекта: ветка docker/master, без публикации в npm.
|
|
4
5
|
// Отдельного репозитория задач нет, поэтому заметки собираются только из коммитов.
|
|
6
|
+
// Штатный release-notes-generator тянет writer 8 и падает на preset 10,
|
|
7
|
+
// который commitlint поднимает в корень репозитория.
|
|
5
8
|
const semanticReleaseBot = createSemanticReleaseConfig({
|
|
9
|
+
additionalPlugins: [releaseNotesFromCommitsPlugin],
|
|
6
10
|
branches: ['docker/master'],
|
|
7
11
|
gitConfig: {
|
|
8
12
|
message: 'release: publishing new version ${nextRelease.version} [skip ci]',
|
|
@@ -11,6 +15,7 @@ const semanticReleaseBot = createSemanticReleaseConfig({
|
|
|
11
15
|
npmConfig: {
|
|
12
16
|
npmPublish: false,
|
|
13
17
|
},
|
|
18
|
+
skipReleaseNotesGenerator: true,
|
|
14
19
|
})
|
|
15
20
|
|
|
16
21
|
export { semanticReleaseBot }
|