@strapi/upgrade 5.59.0 → 5.60.0
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/package.json.js +1 -1
- package/dist/package.json.mjs +1 -1
- package/dist/src/tasks/upgrade/requirements/common.js +3 -7
- package/dist/src/tasks/upgrade/requirements/common.js.map +1 -1
- package/dist/src/tasks/upgrade/requirements/common.mjs +1 -1
- package/dist/src/tasks/upgrade/requirements/common.mjs.map +1 -1
- package/package.json +6 -6
package/dist/package.json.js
CHANGED
package/dist/package.json.mjs
CHANGED
|
@@ -3,12 +3,8 @@
|
|
|
3
3
|
var simpleGit = require('simple-git');
|
|
4
4
|
var requirement = require('../../../modules/requirement/requirement.js');
|
|
5
5
|
|
|
6
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
7
|
-
|
|
8
|
-
var simpleGit__default = /*#__PURE__*/_interopDefault(simpleGit);
|
|
9
|
-
|
|
10
6
|
const REQUIRE_GIT_CLEAN_REPOSITORY = requirement.requirementFactory('REQUIRE_GIT_CLEAN_REPOSITORY', async (context)=>{
|
|
11
|
-
const git =
|
|
7
|
+
const git = simpleGit.simpleGit({
|
|
12
8
|
baseDir: context.project.cwd
|
|
13
9
|
});
|
|
14
10
|
const status = await git.status();
|
|
@@ -17,7 +13,7 @@ const REQUIRE_GIT_CLEAN_REPOSITORY = requirement.requirementFactory('REQUIRE_GIT
|
|
|
17
13
|
}
|
|
18
14
|
});
|
|
19
15
|
const REQUIRE_GIT_REPOSITORY = requirement.requirementFactory('REQUIRE_GIT_REPOSITORY', async (context)=>{
|
|
20
|
-
const git =
|
|
16
|
+
const git = simpleGit.simpleGit({
|
|
21
17
|
baseDir: context.project.cwd
|
|
22
18
|
});
|
|
23
19
|
const isRepo = await git.checkIsRepo();
|
|
@@ -26,7 +22,7 @@ const REQUIRE_GIT_REPOSITORY = requirement.requirementFactory('REQUIRE_GIT_REPOS
|
|
|
26
22
|
}
|
|
27
23
|
}).addChild(REQUIRE_GIT_CLEAN_REPOSITORY.asOptional());
|
|
28
24
|
const REQUIRE_GIT_INSTALLED = requirement.requirementFactory('REQUIRE_GIT_INSTALLED', async (context)=>{
|
|
29
|
-
const git =
|
|
25
|
+
const git = simpleGit.simpleGit({
|
|
30
26
|
baseDir: context.project.cwd
|
|
31
27
|
});
|
|
32
28
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sources":["../../../../../src/tasks/upgrade/requirements/common.ts"],"sourcesContent":["import simpleGit from 'simple-git';\n\nimport { requirementFactory } from '../../../modules/requirement';\n\nexport const REQUIRE_GIT_CLEAN_REPOSITORY = requirementFactory(\n 'REQUIRE_GIT_CLEAN_REPOSITORY',\n async (context) => {\n const git = simpleGit({ baseDir: context.project.cwd });\n\n const status = await git.status();\n\n if (!status.isClean()) {\n throw new Error(\n 'Repository is not clean. Please commit or stash any changes before upgrading'\n );\n }\n }\n);\n\nexport const REQUIRE_GIT_REPOSITORY = requirementFactory(\n 'REQUIRE_GIT_REPOSITORY',\n async (context) => {\n const git = simpleGit({ baseDir: context.project.cwd });\n\n const isRepo = await git.checkIsRepo();\n\n if (!isRepo) {\n throw new Error('Not a git repository (or any of the parent directories)');\n }\n }\n).addChild(REQUIRE_GIT_CLEAN_REPOSITORY.asOptional());\n\nexport const REQUIRE_GIT_INSTALLED = requirementFactory(\n 'REQUIRE_GIT_INSTALLED',\n async (context) => {\n const git = simpleGit({ baseDir: context.project.cwd });\n\n try {\n await git.version();\n } catch {\n throw new Error('Git is not installed');\n }\n }\n).addChild(REQUIRE_GIT_REPOSITORY.asOptional());\n\nexport const REQUIRE_GIT = requirementFactory('REQUIRE_GIT', null).addChild(\n REQUIRE_GIT_INSTALLED.asOptional()\n);\n"],"names":["REQUIRE_GIT_CLEAN_REPOSITORY","requirementFactory","context","git","simpleGit","baseDir","project","cwd","status","isClean","Error","REQUIRE_GIT_REPOSITORY","isRepo","checkIsRepo","addChild","asOptional","REQUIRE_GIT_INSTALLED","version","REQUIRE_GIT"],"mappings":"
|
|
1
|
+
{"version":3,"file":"common.js","sources":["../../../../../src/tasks/upgrade/requirements/common.ts"],"sourcesContent":["import { simpleGit } from 'simple-git';\n\nimport { requirementFactory } from '../../../modules/requirement';\n\nexport const REQUIRE_GIT_CLEAN_REPOSITORY = requirementFactory(\n 'REQUIRE_GIT_CLEAN_REPOSITORY',\n async (context) => {\n const git = simpleGit({ baseDir: context.project.cwd });\n\n const status = await git.status();\n\n if (!status.isClean()) {\n throw new Error(\n 'Repository is not clean. Please commit or stash any changes before upgrading'\n );\n }\n }\n);\n\nexport const REQUIRE_GIT_REPOSITORY = requirementFactory(\n 'REQUIRE_GIT_REPOSITORY',\n async (context) => {\n const git = simpleGit({ baseDir: context.project.cwd });\n\n const isRepo = await git.checkIsRepo();\n\n if (!isRepo) {\n throw new Error('Not a git repository (or any of the parent directories)');\n }\n }\n).addChild(REQUIRE_GIT_CLEAN_REPOSITORY.asOptional());\n\nexport const REQUIRE_GIT_INSTALLED = requirementFactory(\n 'REQUIRE_GIT_INSTALLED',\n async (context) => {\n const git = simpleGit({ baseDir: context.project.cwd });\n\n try {\n await git.version();\n } catch {\n throw new Error('Git is not installed');\n }\n }\n).addChild(REQUIRE_GIT_REPOSITORY.asOptional());\n\nexport const REQUIRE_GIT = requirementFactory('REQUIRE_GIT', null).addChild(\n REQUIRE_GIT_INSTALLED.asOptional()\n);\n"],"names":["REQUIRE_GIT_CLEAN_REPOSITORY","requirementFactory","context","git","simpleGit","baseDir","project","cwd","status","isClean","Error","REQUIRE_GIT_REPOSITORY","isRepo","checkIsRepo","addChild","asOptional","REQUIRE_GIT_INSTALLED","version","REQUIRE_GIT"],"mappings":";;;;;AAIO,MAAMA,4BAAAA,GAA+BC,8BAAAA,CAC1C,8BAAA,EACA,OAAOC,OAAAA,GAAAA;AACL,IAAA,MAAMC,MAAMC,mBAAAA,CAAU;QAAEC,OAAAA,EAASH,OAAAA,CAAQI,OAAO,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ory } from '../../../modules/requirement/requirement.mjs';
|
|
3
3
|
|
|
4
4
|
const REQUIRE_GIT_CLEAN_REPOSITORY = requirementFactory('REQUIRE_GIT_CLEAN_REPOSITORY', async (context)=>{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.mjs","sources":["../../../../../src/tasks/upgrade/requirements/common.ts"],"sourcesContent":["import simpleGit from 'simple-git';\n\nimport { requirementFactory } from '../../../modules/requirement';\n\nexport const REQUIRE_GIT_CLEAN_REPOSITORY = requirementFactory(\n 'REQUIRE_GIT_CLEAN_REPOSITORY',\n async (context) => {\n const git = simpleGit({ baseDir: context.project.cwd });\n\n const status = await git.status();\n\n if (!status.isClean()) {\n throw new Error(\n 'Repository is not clean. Please commit or stash any changes before upgrading'\n );\n }\n }\n);\n\nexport const REQUIRE_GIT_REPOSITORY = requirementFactory(\n 'REQUIRE_GIT_REPOSITORY',\n async (context) => {\n const git = simpleGit({ baseDir: context.project.cwd });\n\n const isRepo = await git.checkIsRepo();\n\n if (!isRepo) {\n throw new Error('Not a git repository (or any of the parent directories)');\n }\n }\n).addChild(REQUIRE_GIT_CLEAN_REPOSITORY.asOptional());\n\nexport const REQUIRE_GIT_INSTALLED = requirementFactory(\n 'REQUIRE_GIT_INSTALLED',\n async (context) => {\n const git = simpleGit({ baseDir: context.project.cwd });\n\n try {\n await git.version();\n } catch {\n throw new Error('Git is not installed');\n }\n }\n).addChild(REQUIRE_GIT_REPOSITORY.asOptional());\n\nexport const REQUIRE_GIT = requirementFactory('REQUIRE_GIT', null).addChild(\n REQUIRE_GIT_INSTALLED.asOptional()\n);\n"],"names":["REQUIRE_GIT_CLEAN_REPOSITORY","requirementFactory","context","git","simpleGit","baseDir","project","cwd","status","isClean","Error","REQUIRE_GIT_REPOSITORY","isRepo","checkIsRepo","addChild","asOptional","REQUIRE_GIT_INSTALLED","version","REQUIRE_GIT"],"mappings":";;;AAIO,MAAMA,4BAAAA,GAA+BC,kBAAAA,CAC1C,8BAAA,EAC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{"version":3,"file":"common.mjs","sources":["../../../../../src/tasks/upgrade/requirements/common.ts"],"sourcesContent":["import { simpleGit } from 'simple-git';\n\nimport { requirementFactory } from '../../../modules/requirement';\n\nexport const REQUIRE_GIT_CLEAN_REPOSITORY = requirementFactory(\n 'REQUIRE_GIT_CLEAN_REPOSITORY',\n async (context) => {\n const git = simpleGit({ baseDir: context.project.cwd });\n\n const status = await git.status();\n\n if (!status.isClean()) {\n throw new Error(\n 'Repository is not clean. Please commit or stash any changes before upgrading'\n );\n }\n }\n);\n\nexport const REQUIRE_GIT_REPOSITORY = requirementFactory(\n 'REQUIRE_GIT_REPOSITORY',\n async (context) => {\n const git = simpleGit({ baseDir: context.project.cwd });\n\n const isRepo = await git.checkIsRepo();\n\n if (!isRepo) {\n throw new Error('Not a git repository (or any of the parent directories)');\n }\n }\n).addChild(REQUIRE_GIT_CLEAN_REPOSITORY.asOptional());\n\nexport const REQUIRE_GIT_INSTALLED = requirementFactory(\n 'REQUIRE_GIT_INSTALLED',\n async (context) => {\n const git = simpleGit({ baseDir: context.project.cwd });\n\n try {\n await git.version();\n } catch {\n throw new Error('Git is not installed');\n }\n }\n).addChild(REQUIRE_GIT_REPOSITORY.asOptional());\n\nexport const REQUIRE_GIT = requirementFactory('REQUIRE_GIT', null).addChild(\n REQUIRE_GIT_INSTALLED.asOptional()\n);\n"],"names":["REQUIRE_GIT_CLEAN_REPOSITORY","requirementFactory","context","git","simpleGit","baseDir","project","cwd","status","isClean","Error","REQUIRE_GIT_REPOSITORY","isRepo","checkIsRepo","addChild","asOptional","REQUIRE_GIT_INSTALLED","version","REQUIRE_GIT"],"mappings":";;;AAIO,MAAMA,4BAAAA,GAA+BC,kBAAAA,CAC1C,8BAAA,EACA,OAAOC,OAAAA,GAAAA;AACL,IAAA,MAAMC,MAAMC,SAAAA,CAAU;QAAEC,OAAAA,EAASH,OAAAA,CAAQI,OAAO,CAACC;AAAI,KAAA,CAAA;IAErD,MAAMC,MAAAA,GAAS,MAAML,GAAAA,CAAIK,MAAM,EAAA;IAE/B,IAAI,CAACA,MAAAA,CAAOC,OAAO,EAAA,EAAI;AACrB,QAAA,MAAM,IAAIC,KAAAA,CACR,8EAAA,CAAA;AAEJ,IAAA;AACF,CAAA;AAGK,MAAMC,sBAAAA,GAAyBV,kBAAAA,CACpC,wBAAA,EACA,OAAOC,OAAAA,GAAAA;AACL,IAAA,MAAMC,MAAMC,SAAAA,CAAU;QAAEC,OAAAA,EAASH,OAAAA,CAAQI,OAAO,CAACC;AAAI,KAAA,CAAA;IAErD,MAAMK,MAAAA,GAAS,MAAMT,GAAAA,CAAIU,WAAW,EAAA;AAEpC,IAAA,IAAI,CAACD,MAAAA,EAAQ;AACX,QAAA,MAAM,IAAIF,KAAAA,CAAM,yDAAA,CAAA;AAClB,IAAA;AACF,CAAA,CAAA,CACAI,QAAQ,CAACd,4BAAAA,CAA6Be,UAAU,EAAA;AAE3C,MAAMC,qBAAAA,GAAwBf,kBAAAA,CACnC,uBAAA,EACA,OAAOC,OAAAA,GAAAA;AACL,IAAA,MAAMC,MAAMC,SAAAA,CAAU;QAAEC,OAAAA,EAASH,OAAAA,CAAQI,OAAO,CAACC;AAAI,KAAA,CAAA;IAErD,IAAI;AACF,QAAA,MAAMJ,IAAIc,OAAO,EAAA;AACnB,IAAA,CAAA,CAAE,OAAM;AACN,QAAA,MAAM,IAAIP,KAAAA,CAAM,sBAAA,CAAA;AAClB,IAAA;AACF,CAAA,CAAA,CACAI,QAAQ,CAACH,sBAAAA,CAAuBI,UAAU,EAAA;AAErC,MAAMG,cAAcjB,kBAAAA,CAAmB,aAAA,EAAe,MAAMa,QAAQ,CACzEE,qBAAAA,CAAsBD,UAAU,EAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/upgrade",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.60.0",
|
|
4
4
|
"description": "CLI to upgrade Strapi applications effortless",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"strapi",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"watch": "run -T rollup -c -w"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@strapi/utils": "5.
|
|
68
|
+
"@strapi/utils": "5.60.0",
|
|
69
69
|
"chalk": "4.1.2",
|
|
70
70
|
"cli-table3": "0.6.5",
|
|
71
71
|
"commander": "8.3.0",
|
|
@@ -79,16 +79,16 @@
|
|
|
79
79
|
"ora": "5.4.1",
|
|
80
80
|
"prompts": "2.4.2",
|
|
81
81
|
"semver": "7.7.4",
|
|
82
|
-
"simple-git": "
|
|
83
|
-
"undici": "8.12.
|
|
82
|
+
"simple-git": "4.0.2",
|
|
83
|
+
"undici": "8.12.3"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
|
-
"@strapi/types": "5.
|
|
86
|
+
"@strapi/types": "5.60.0",
|
|
87
87
|
"@types/fs-extra": "11.0.4",
|
|
88
88
|
"@types/jest": "29.5.2",
|
|
89
89
|
"@types/jscodeshift": "17.3.0",
|
|
90
90
|
"@types/node": "20.19.41",
|
|
91
|
-
"eslint-config-custom": "5.
|
|
91
|
+
"eslint-config-custom": "5.60.0",
|
|
92
92
|
"jest": "29.6.0",
|
|
93
93
|
"rimraf": "6.1.3"
|
|
94
94
|
},
|