jiek 2.2.5-alpha.1 → 2.2.5
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/dist/cli-only-build.cjs +1 -1
- package/dist/cli-only-build.js +1 -1
- package/dist/cli.cjs +5 -8
- package/dist/cli.js +5 -8
- package/package.json +1 -1
- package/src/commands/publish.ts +6 -13
package/dist/cli-only-build.cjs
CHANGED
@@ -118,7 +118,7 @@ async function getSelectedProjectsGraph(filter = commander.program.getOptionValu
|
|
118
118
|
|
119
119
|
var name = "jiek";
|
120
120
|
var type = "module";
|
121
|
-
var version = "2.2.
|
121
|
+
var version = "2.2.4";
|
122
122
|
var description$1 = "A lightweight toolkit for compiling and managing libraries based on `package.json` metadata and suitable for `Monorepo`.";
|
123
123
|
var author = "YiJie <yijie4188@gmail.com>";
|
124
124
|
var homepage = "https://github.com/NWYLZW/jiek/tree/master/packages/jiek#readme";
|
package/dist/cli-only-build.js
CHANGED
@@ -110,7 +110,7 @@ async function getSelectedProjectsGraph(filter = program.getOptionValue("filter"
|
|
110
110
|
|
111
111
|
var name = "jiek";
|
112
112
|
var type = "module";
|
113
|
-
var version = "2.2.
|
113
|
+
var version = "2.2.4";
|
114
114
|
var description$1 = "A lightweight toolkit for compiling and managing libraries based on `package.json` metadata and suitable for `Monorepo`.";
|
115
115
|
var author = "YiJie <yijie4188@gmail.com>";
|
116
116
|
var homepage = "https://github.com/NWYLZW/jiek/tree/master/packages/jiek#readme";
|
package/dist/cli.cjs
CHANGED
@@ -4794,15 +4794,12 @@ async function prepublish({ bumper: bumper$1 } = {}) {
|
|
4794
4794
|
async function postpublish() {
|
4795
4795
|
await forEachSelectedProjectsGraphEntries((dir) => {
|
4796
4796
|
const jiekTempDir = path__default.default.resolve(dir, "node_modules/.jiek/.tmp");
|
4797
|
-
const
|
4798
|
-
const
|
4799
|
-
|
4800
|
-
|
4801
|
-
fs__default.default.
|
4802
|
-
fs__default.default.rmSync(jiekTempPackageJSONPath);
|
4797
|
+
const packageJSON = path__default.default.resolve(dir, "package.json");
|
4798
|
+
const jiekTempPackageJSON = path__default.default.resolve(jiekTempDir, "package.json");
|
4799
|
+
if (fs__default.default.existsSync(jiekTempPackageJSON)) {
|
4800
|
+
fs__default.default.copyFileSync(jiekTempPackageJSON, packageJSON);
|
4801
|
+
fs__default.default.rmSync(jiekTempPackageJSON);
|
4803
4802
|
console.log(`${dir}/package.json has been restored`);
|
4804
|
-
console.log(`if you want to check the compatibility of the package, you can visit:`);
|
4805
|
-
console.log(`https://arethetypeswrong.github.io/?p=${name}%40${version}`);
|
4806
4803
|
} else {
|
4807
4804
|
throw new Error(
|
4808
4805
|
`jiek temp \`${dir}/package.json\` not found, please confirm the jiek pre-publish command has been executed`
|
package/dist/cli.js
CHANGED
@@ -4765,15 +4765,12 @@ async function prepublish({ bumper } = {}) {
|
|
4765
4765
|
async function postpublish() {
|
4766
4766
|
await forEachSelectedProjectsGraphEntries((dir) => {
|
4767
4767
|
const jiekTempDir = path.resolve(dir, "node_modules/.jiek/.tmp");
|
4768
|
-
const
|
4769
|
-
const
|
4770
|
-
|
4771
|
-
|
4772
|
-
fs.
|
4773
|
-
fs.rmSync(jiekTempPackageJSONPath);
|
4768
|
+
const packageJSON = path.resolve(dir, "package.json");
|
4769
|
+
const jiekTempPackageJSON = path.resolve(jiekTempDir, "package.json");
|
4770
|
+
if (fs.existsSync(jiekTempPackageJSON)) {
|
4771
|
+
fs.copyFileSync(jiekTempPackageJSON, packageJSON);
|
4772
|
+
fs.rmSync(jiekTempPackageJSON);
|
4774
4773
|
console.log(`${dir}/package.json has been restored`);
|
4775
|
-
console.log(`if you want to check the compatibility of the package, you can visit:`);
|
4776
|
-
console.log(`https://arethetypeswrong.github.io/?p=${name}%40${version}`);
|
4777
4774
|
} else {
|
4778
4775
|
throw new Error(
|
4779
4776
|
`jiek temp \`${dir}/package.json\` not found, please confirm the jiek pre-publish command has been executed`
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "jiek",
|
3
3
|
"type": "module",
|
4
|
-
"version": "2.2.5
|
4
|
+
"version": "2.2.5",
|
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
|
"homepage": "https://github.com/NWYLZW/jiek/tree/master/packages/jiek#readme",
|
package/src/commands/publish.ts
CHANGED
@@ -440,20 +440,13 @@ async function prepublish({ bumper }: {
|
|
440
440
|
async function postpublish() {
|
441
441
|
await forEachSelectedProjectsGraphEntries(dir => {
|
442
442
|
const jiekTempDir = path.resolve(dir, 'node_modules/.jiek/.tmp')
|
443
|
-
const
|
444
|
-
const
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
if (fs.existsSync(jiekTempPackageJSONPath)) {
|
450
|
-
fs.copyFileSync(jiekTempPackageJSONPath, packageJSONPath)
|
451
|
-
fs.rmSync(jiekTempPackageJSONPath)
|
452
|
-
/* eslint-disable no-console */
|
443
|
+
const packageJSON = path.resolve(dir, 'package.json')
|
444
|
+
const jiekTempPackageJSON = path.resolve(jiekTempDir, 'package.json')
|
445
|
+
if (fs.existsSync(jiekTempPackageJSON)) {
|
446
|
+
fs.copyFileSync(jiekTempPackageJSON, packageJSON)
|
447
|
+
fs.rmSync(jiekTempPackageJSON)
|
448
|
+
// eslint-disable-next-line no-console
|
453
449
|
console.log(`${dir}/package.json has been restored`)
|
454
|
-
console.log(`if you want to check the compatibility of the package, you can visit:`)
|
455
|
-
console.log(`https://arethetypeswrong.github.io/?p=${name}%40${version}`)
|
456
|
-
/* eslint-enable no-console */
|
457
450
|
} else {
|
458
451
|
throw new Error(
|
459
452
|
`jiek temp \`${dir}/package.json\` not found, please confirm the jiek pre-publish command has been executed`
|