Skip to content

Commit c4a9a7b

Browse files
committed
chore: updated nightly dep for the packages
1 parent e55b3f0 commit c4a9a7b

File tree

4 files changed

+121
-2
lines changed

4 files changed

+121
-2
lines changed

dependenciesList.js

+111
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
const version = "nightly";
2+
3+
module.exports = {
4+
cssnano: {
5+
cosmiconfig: "^5.2.1",
6+
"cssnano-preset-default": version,
7+
"is-resolvable": "^1.1.0",
8+
"opencollective-postinstall": "^2.0.2",
9+
postcss: "^7.0.16"
10+
},
11+
"cssnano-preset-default": {
12+
"css-declaration-sorter": "^5.1.2",
13+
"cssnano-utils": version,
14+
postcss: "^7.0.16",
15+
"postcss-calc": "^7.0.1",
16+
"postcss-colormin": version,
17+
"postcss-convert-values": version,
18+
"postcss-discard-comments": version,
19+
"postcss-discard-duplicates": version,
20+
"postcss-discard-empty": version,
21+
"postcss-discard-overridden": version,
22+
"postcss-merge-longhand": version,
23+
"postcss-merge-rules": version,
24+
"postcss-minify-font-values": version,
25+
"postcss-minify-gradients": version,
26+
"postcss-minify-params": version,
27+
"postcss-minify-selectors": version,
28+
"postcss-normalize-charset": version,
29+
"postcss-normalize-display-values": version,
30+
"postcss-normalize-positions": version,
31+
"postcss-normalize-repeat-style": version,
32+
"postcss-normalize-string": version,
33+
"postcss-normalize-timing-functions": version,
34+
"postcss-normalize-unicode": version,
35+
"postcss-normalize-url": version,
36+
"postcss-normalize-whitespace": version,
37+
"postcss-ordered-values": version,
38+
"postcss-reduce-initial": version,
39+
"postcss-reduce-transforms": version,
40+
"postcss-svgo": version,
41+
"postcss-unique-selectors": version
42+
},
43+
"cssnano-preset-advanced": {
44+
autoprefixer: "^9.5.1",
45+
"cssnano-preset-default": version,
46+
"postcss-discard-unused": version,
47+
"postcss-merge-idents": version,
48+
"postcss-reduce-idents": version,
49+
"postcss-zindex": version
50+
},
51+
"postcss-merge-longhand": {
52+
"css-color-names": "^1.0.1",
53+
postcss: "^7.0.16",
54+
"postcss-value-parser": "^3.3.1",
55+
stylehacks: version
56+
},
57+
"postcss-merge-idents": {
58+
"cssnano-utils": version,
59+
has: "^1.0.3",
60+
postcss: "^7.0.16",
61+
"postcss-value-parser": "^3.3.1"
62+
},
63+
"postcss-merge-rules": {
64+
browserslist: "^4.6.0",
65+
"caniuse-api": "^3.0.0",
66+
"cssnano-utils": version,
67+
postcss: "^7.0.16",
68+
"postcss-selector-parser": "^3.1.1",
69+
vendors: "^1.0.3"
70+
},
71+
"postcss-minify-gradients": {
72+
"cssnano-utils": version,
73+
"is-color-stop": "^1.1.0",
74+
postcss: "^7.0.16",
75+
"postcss-value-parser": "^3.3.1"
76+
},
77+
"postcss-minify-params": {
78+
"alphanum-sort": "^1.0.2",
79+
browserslist: "^4.6.0",
80+
"cssnano-utils": version,
81+
postcss: "^7.0.16",
82+
"postcss-value-parser": "^3.3.1",
83+
uniqs: "^2.0.0"
84+
},
85+
"postcss-normalize-display-values": {
86+
"cssnano-utils": version,
87+
postcss: "^7.0.16",
88+
"postcss-value-parser": "^3.3.1"
89+
},
90+
"postcss-normalize-repeat-style": {
91+
"cssnano-utils": version,
92+
postcss: "^7.0.16",
93+
"postcss-value-parser": "^3.3.1"
94+
},
95+
"postcss-normalize-timing-functions": {
96+
"cssnano-utils": version,
97+
postcss: "^7.0.16",
98+
"postcss-value-parser": "^3.3.1"
99+
},
100+
"postcss-ordered-values": {
101+
"cssnano-utils": version,
102+
postcss: "^7.0.16",
103+
"postcss-value-parser": "^3.3.1"
104+
},
105+
"postcss-reduce-transforms": {
106+
"cssnano-utils": version,
107+
has: "^1.0.3",
108+
postcss: "^7.0.16",
109+
"postcss-value-parser": "^3.3.1"
110+
}
111+
};

publish.js

+8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const { fullVersion } = require("./versions");
77
const { ignorePackages } = require("./packageList");
88
const assert = require("assert");
99
const editJsonFile = require("edit-json-file");
10+
const newdepList = require("./dependenciesList");
1011
const {
1112
gitClonedPath,
1213
cssnanoPath,
@@ -83,6 +84,13 @@ module.exports = async function run(registryUrl = registry) {
8384
packageJson.set("scripts.prebuild", "");
8485
packageJson.set("version", `${version}-nightly.${fullVersion}`);
8586
packageJson.set("publishConfig.registry", registryUrl);
87+
88+
if (newdepList[pkg]) {
89+
packageJson.set("dependencies", {
90+
...newdepList[pkg]
91+
});
92+
}
93+
8694
packageJson.save();
8795
shell.cp("-R", __dirname + "/.npmrc", pkgPath);
8896
try {

test/fixture/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"dependencies": {
3-
"cssnano": "^4.0.0-nightly.0.7.9"
3+
"cssnano": "^4.0.0-nightly.2020.7.11"
44
}
55
}

versions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const { version } = require("./config");
22

33
const date = new Date();
44
const semver = {
5-
major: date.getUTCFullYear() - 2020,
5+
major: 2020,
66
minor: date.getUTCMonth() + 1,
77
patch: date.getUTCDate()
88
};

0 commit comments

Comments
 (0)