docker-react 0.0.1-alpha.1 → 0.0.1-alpha.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/file.d.ts +1 -0
- package/dist/file.js +6 -0
- package/dist/prep.js +1 -1
- package/package.json +4 -1
package/dist/file.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function findAndReplaceInFile(filePath: string, fromSearchValue: RegExp | string, toSearchFile: string): Promise<void>;
|
package/dist/file.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { promises as fs } from 'fs';
|
|
2
|
+
export async function findAndReplaceInFile(filePath, fromSearchValue, toSearchFile) {
|
|
3
|
+
const data = await fs.readFile(filePath, 'utf8');
|
|
4
|
+
const result = data.replace(fromSearchValue, toSearchFile);
|
|
5
|
+
await fs.writeFile(filePath, result, 'utf8');
|
|
6
|
+
}
|
package/dist/prep.js
CHANGED
|
@@ -10,7 +10,7 @@ export function addPrepCommand(program) {
|
|
|
10
10
|
.option('-s, --schema [string]', 'The path to the schema file')
|
|
11
11
|
.option('-d, --destination [string', 'The path to the destination')
|
|
12
12
|
.action((options) => {
|
|
13
|
-
const { environment, schema = './
|
|
13
|
+
const { environment, schema = './env.schema.js', destination = './', } = options;
|
|
14
14
|
generateEnvironmentFile(environment, schema, destination);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docker-react",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.2",
|
|
4
4
|
"description": "Tooling to deploy React applications with docker containers.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -34,5 +34,8 @@
|
|
|
34
34
|
"commander": "^8.3.0",
|
|
35
35
|
"dotenv": "^10.0.0",
|
|
36
36
|
"joi": "^17.5.0"
|
|
37
|
+
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"joi": "^17.5.0"
|
|
37
40
|
}
|
|
38
41
|
}
|