@digigov/cli-build 2.0.0-254f7786 → 2.0.0-2a26e869
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/.rush/temp/shrinkwrap-deps.json +1 -1
- package/copy-files.js +12 -0
- package/package.json +3 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"../../tooling/cli-build": "../../tooling/cli-build:
|
|
2
|
+
"../../tooling/cli-build": "../../tooling/cli-build:02YjlK6+1qui1+paVKGwEISZBfTmSHa5jCm7uK5t+7I=:",
|
|
3
3
|
"/@babel/cli@7.12.1(@babel/core@7.26.0)": "Missing shrinkwrap entry!",
|
|
4
4
|
"/@babel/compat-data@7.12.5": "Missing shrinkwrap entry!",
|
|
5
5
|
"/@babel/core@7.26.0": "Missing shrinkwrap entry!",
|
package/copy-files.js
CHANGED
|
@@ -19,6 +19,17 @@ function includeFileInBuild(file) {
|
|
|
19
19
|
logger.debug(`Copied ${sourcePath} to build directory`);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
function copyRegistryFilesToSrc() {
|
|
23
|
+
const registryPath = path.resolve(buildPath, "registry/index.js");
|
|
24
|
+
const lazyPath = path.resolve(buildPath, "lazy/index.js");
|
|
25
|
+
if (!fs.existsSync(registryPath) || !fs.existsSync(lazyPath)) return;
|
|
26
|
+
|
|
27
|
+
const srcPath = path.resolve(buildPath, "src");
|
|
28
|
+
logger.debug(`Copying registry and lazy files to ${srcPath}`);
|
|
29
|
+
fs.copySync(registryPath, path.resolve(srcPath, "registry.js"));
|
|
30
|
+
fs.copySync(lazyPath, path.resolve(srcPath, "lazy.js"));
|
|
31
|
+
}
|
|
32
|
+
|
|
22
33
|
/**
|
|
23
34
|
* Create a package.json file in the build directory
|
|
24
35
|
*/
|
|
@@ -134,6 +145,7 @@ export default function run() {
|
|
|
134
145
|
const packageData = createRootPackageFile();
|
|
135
146
|
createSeparateIndexModules();
|
|
136
147
|
createNestedPackageFiles();
|
|
148
|
+
copyRegistryFilesToSrc();
|
|
137
149
|
|
|
138
150
|
[
|
|
139
151
|
// use enhanced readme from workspace root for `@digigov/ui`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/cli-build",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-2a26e869",
|
|
4
4
|
"description": "Build plugin for Digigov CLI",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
|
|
29
29
|
"fs-extra": "11.2.0",
|
|
30
30
|
"globby": "11.0.0",
|
|
31
|
-
"@digigov/babel-ts-to-proptypes": "1.1.0-rc.23-rc.25",
|
|
32
31
|
"babel-plugin-istanbul": "7.0.0",
|
|
33
32
|
"publint": "0.1.8",
|
|
34
33
|
"rimraf": "3.0.2",
|
|
@@ -39,13 +38,13 @@
|
|
|
39
38
|
"devDependencies": {
|
|
40
39
|
"publint": "0.1.8",
|
|
41
40
|
"vitest": "2.1.3",
|
|
42
|
-
"@digigov/cli-test": "2.0.0-
|
|
41
|
+
"@digigov/cli-test": "2.0.0-2a26e869",
|
|
43
42
|
"@types/fs-extra": "11.0.4",
|
|
44
43
|
"@types/node": "18.19.0",
|
|
45
44
|
"typescript": "5.6.2"
|
|
46
45
|
},
|
|
47
46
|
"peerDependencies": {
|
|
48
|
-
"@digigov/cli": "2.0.0-
|
|
47
|
+
"@digigov/cli": "2.0.0-2a26e869",
|
|
49
48
|
"next": "13.1.1"
|
|
50
49
|
},
|
|
51
50
|
"peerDependenciesMeta": {
|