jiek 2.0.2-alpha.6 → 2.0.2-alpha.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -116,7 +116,7 @@ async function getSelectedProjectsGraph(filter = commander.program.getOptionValu
116
116
 
117
117
  var name = "jiek";
118
118
  var type = "module";
119
- var version = "2.0.2-alpha.5";
119
+ var version = "2.0.2-alpha.6";
120
120
  var description$1 = "A lightweight toolkit for compiling and managing libraries based on `package.json` metadata and suitable for `Monorepo`.";
121
121
  var author = "YiJie <yijie4188@gmail.com>";
122
122
  var repository = {
package/cli-only-build.js CHANGED
@@ -108,7 +108,7 @@ async function getSelectedProjectsGraph(filter = program.getOptionValue("filter"
108
108
 
109
109
  var name = "jiek";
110
110
  var type = "module";
111
- var version = "2.0.2-alpha.5";
111
+ var version = "2.0.2-alpha.6";
112
112
  var description$1 = "A lightweight toolkit for compiling and managing libraries based on `package.json` metadata and suitable for `Monorepo`.";
113
113
  var author = "YiJie <yijie4188@gmail.com>";
114
114
  var repository = {
package/cli.cjs CHANGED
@@ -4548,6 +4548,8 @@ async function prepublish() {
4548
4548
  )
4549
4549
  );
4550
4550
  for (const [key, value] of Object.entries(manifest)) {
4551
+ if (key === "version")
4552
+ continue;
4551
4553
  if (JSON.stringify(value) === JSON.stringify(oldJSON[key]))
4552
4554
  continue;
4553
4555
  if (key !== "exports") {
@@ -4615,7 +4617,7 @@ async function prepublish() {
4615
4617
  newJSONString,
4616
4618
  jsoncParser.modify(
4617
4619
  newJSONString,
4618
- ["publishConfig", "peerDependenciesMeta"],
4620
+ ["peerDependenciesMeta"],
4619
4621
  peerDependenciesMeta,
4620
4622
  { formattingOptions }
4621
4623
  )
@@ -4685,8 +4687,12 @@ async function postpublish() {
4685
4687
  if (fs__default.default.existsSync(jiekTempPackageJSON)) {
4686
4688
  fs__default.default.copyFileSync(jiekTempPackageJSON, packageJSON);
4687
4689
  fs__default.default.rmSync(jiekTempPackageJSON);
4690
+ console.log(`
4691
+ ${dir}/package.json has been restored`);
4688
4692
  } else {
4689
- throw new Error("jiek temp package.json not found, please confirm the jiek pre-publish command has been executed");
4693
+ throw new Error(
4694
+ `jiek temp \`${dir}/package.json\` not found, please confirm the jiek pre-publish command has been executed`
4695
+ );
4690
4696
  }
4691
4697
  });
4692
4698
  }
package/cli.js CHANGED
@@ -4518,6 +4518,8 @@ async function prepublish() {
4518
4518
  )
4519
4519
  );
4520
4520
  for (const [key, value] of Object.entries(manifest)) {
4521
+ if (key === "version")
4522
+ continue;
4521
4523
  if (JSON.stringify(value) === JSON.stringify(oldJSON[key]))
4522
4524
  continue;
4523
4525
  if (key !== "exports") {
@@ -4585,7 +4587,7 @@ async function prepublish() {
4585
4587
  newJSONString,
4586
4588
  modify(
4587
4589
  newJSONString,
4588
- ["publishConfig", "peerDependenciesMeta"],
4590
+ ["peerDependenciesMeta"],
4589
4591
  peerDependenciesMeta,
4590
4592
  { formattingOptions }
4591
4593
  )
@@ -4655,8 +4657,12 @@ async function postpublish() {
4655
4657
  if (fs.existsSync(jiekTempPackageJSON)) {
4656
4658
  fs.copyFileSync(jiekTempPackageJSON, packageJSON);
4657
4659
  fs.rmSync(jiekTempPackageJSON);
4660
+ console.log(`
4661
+ ${dir}/package.json has been restored`);
4658
4662
  } else {
4659
- throw new Error("jiek temp package.json not found, please confirm the jiek pre-publish command has been executed");
4663
+ throw new Error(
4664
+ `jiek temp \`${dir}/package.json\` not found, please confirm the jiek pre-publish command has been executed`
4665
+ );
4660
4666
  }
4661
4667
  });
4662
4668
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jiek",
3
3
  "type": "module",
4
- "version": "2.0.2-alpha.6",
4
+ "version": "2.0.2-alpha.7",
5
5
  "description": "A lightweight toolkit for compiling and managing libraries based on `package.json` metadata and suitable for `Monorepo`.",
6
6
  "author": "YiJie <yijie4188@gmail.com>",
7
7
  "repository": {
@@ -85,33 +85,30 @@
85
85
  "rollup-plugin-esbuild": "^6.1.0",
86
86
  "rollup-plugin-swc3": "^0.12.1"
87
87
  },
88
- "publishConfig": {
89
- "version": "2.0.2-alpha.5",
90
- "peerDependenciesMeta": {
91
- "@rollup/plugin-terser": {
92
- "optional": true
93
- },
94
- "@pnpm/filter-workspace-packages": {
95
- "optional": true
96
- },
97
- "esbuild-register": {
98
- "optional": true
99
- },
100
- "postcss": {
101
- "optional": true
102
- },
103
- "rollup-plugin-postcss": {
104
- "optional": true
105
- },
106
- "rollup-plugin-esbuild": {
107
- "optional": true
108
- },
109
- "rollup-plugin-swc3": {
110
- "optional": true
111
- },
112
- "typescript": {
113
- "optional": true
114
- }
88
+ "peerDependenciesMeta": {
89
+ "@rollup/plugin-terser": {
90
+ "optional": true
91
+ },
92
+ "@pnpm/filter-workspace-packages": {
93
+ "optional": true
94
+ },
95
+ "esbuild-register": {
96
+ "optional": true
97
+ },
98
+ "postcss": {
99
+ "optional": true
100
+ },
101
+ "rollup-plugin-postcss": {
102
+ "optional": true
103
+ },
104
+ "rollup-plugin-esbuild": {
105
+ "optional": true
106
+ },
107
+ "rollup-plugin-swc3": {
108
+ "optional": true
109
+ },
110
+ "typescript": {
111
+ "optional": true
115
112
  }
116
113
  },
117
114
  "scripts": {