@mettlecast/domain-cdk-packer 0.2.45 → 0.2.47
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.
|
@@ -4,7 +4,6 @@ import * as logs from 'aws-cdk-lib/aws-logs';
|
|
|
4
4
|
import * as cdk from 'aws-cdk-lib';
|
|
5
5
|
import { writeFileSync, mkdirSync } from 'fs';
|
|
6
6
|
import { join } from 'path';
|
|
7
|
-
import { tmpdir } from 'os';
|
|
8
7
|
function camelCase(str) {
|
|
9
8
|
return str.replace(/-([a-z])/g, (_, c) => c.toUpperCase());
|
|
10
9
|
}
|
|
@@ -43,9 +42,9 @@ function generateDedicatedEntry(domainRoot, entry, primitiveType) {
|
|
|
43
42
|
].join('\n');
|
|
44
43
|
}
|
|
45
44
|
function writeTempEntry(content) {
|
|
46
|
-
const dir = join(
|
|
45
|
+
const dir = join('.tib', 'entries');
|
|
47
46
|
mkdirSync(dir, { recursive: true });
|
|
48
|
-
const filePath = join(dir,
|
|
47
|
+
const filePath = join(dir, `entry-${Date.now()}-${Math.random().toString(36).slice(2)}.ts`);
|
|
49
48
|
writeFileSync(filePath, content, 'utf8');
|
|
50
49
|
return filePath;
|
|
51
50
|
}
|