@pega/sdk 0.0.1 → 0.0.2
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/index.js +0 -17
- package/package.json +4 -1
- package/templates/react-sdk-reference/package.json +2 -1
- package/templates/react-sdk-reference/pega-auth-0.2.42.tgz +0 -0
- package/templates/react-sdk-reference/pega-constellationjs-0.26.2.tgz +0 -0
- package/templates/react-sdk-reference/pega-sdk-react-0.1.0.tgz +0 -0
- package/templates/react-sdk-reference/pega-sdk-types-0.1.0.tgz +0 -0
package/dist/index.js
CHANGED
|
@@ -343,9 +343,6 @@ var SKIP_ENTRIES = /* @__PURE__ */ new Set([
|
|
|
343
343
|
".expo",
|
|
344
344
|
".angular"
|
|
345
345
|
]);
|
|
346
|
-
function shouldSkipFile(name) {
|
|
347
|
-
return name.endsWith(".tgz");
|
|
348
|
-
}
|
|
349
346
|
async function scaffold(choices, targetDir, onProgress) {
|
|
350
347
|
const report = (message) => onProgress?.(message);
|
|
351
348
|
const {
|
|
@@ -464,19 +461,6 @@ function transformPackageJson(pkgJsonPath, projectName) {
|
|
|
464
461
|
const pkgJson = JSON.parse(fs.readFileSync(pkgJsonPath, "utf-8"));
|
|
465
462
|
pkgJson.name = projectName;
|
|
466
463
|
delete pkgJson.private;
|
|
467
|
-
const fileDepsMap = {
|
|
468
|
-
"@pega/auth": "^0.2.42",
|
|
469
|
-
"@pega/constellationjs": "^0.26.2"
|
|
470
|
-
};
|
|
471
|
-
for (const section of ["dependencies", "devDependencies"]) {
|
|
472
|
-
const deps = pkgJson[section];
|
|
473
|
-
if (!deps) continue;
|
|
474
|
-
for (const [name, version] of Object.entries(deps)) {
|
|
475
|
-
if (typeof version === "string" && version.startsWith("file:")) {
|
|
476
|
-
deps[name] = fileDepsMap[name] || "*";
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
464
|
fs.writeFileSync(pkgJsonPath, JSON.stringify(pkgJson, null, 2) + "\n");
|
|
481
465
|
}
|
|
482
466
|
function transformTsConfig(tsconfigPath) {
|
|
@@ -541,7 +525,6 @@ function copyDir(src, dest) {
|
|
|
541
525
|
fs.mkdirSync(dest, { recursive: true });
|
|
542
526
|
for (const entry of fs.readdirSync(src, { withFileTypes: true })) {
|
|
543
527
|
if (SKIP_ENTRIES.has(entry.name)) continue;
|
|
544
|
-
if (!entry.isDirectory() && shouldSkipFile(entry.name)) continue;
|
|
545
528
|
const srcPath = path.join(src, entry.name);
|
|
546
529
|
const destPath = path.join(dest, entry.name);
|
|
547
530
|
if (entry.isDirectory()) {
|
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pega/sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "Scaffold a Pega SDK application project",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"sdk": "./dist/index.js"
|
|
8
8
|
},
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"registry": "https://registry.npmjs.org/"
|
|
11
|
+
},
|
|
9
12
|
"files": [
|
|
10
13
|
"dist",
|
|
11
14
|
"templates",
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
"@mui/x-date-pickers": "^9.2.0",
|
|
19
19
|
"@pega/auth": "file:pega-auth-0.2.42.tgz",
|
|
20
20
|
"@pega/constellationjs": "file:pega-constellationjs-0.26.2.tgz",
|
|
21
|
-
"@pega/sdk-react": "
|
|
21
|
+
"@pega/sdk-react": "file:pega-sdk-react-0.1.0.tgz",
|
|
22
|
+
"@pega/sdk-types": "file:pega-sdk-types-0.1.0.tgz",
|
|
22
23
|
"@react-google-maps/api": "^2.20.8",
|
|
23
24
|
"@tinymce/tinymce-react": "^6.3.0",
|
|
24
25
|
"clsx": "^2.1.1",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|