@atls/code-schematics 2.0.27 → 2.0.29

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.
@@ -1,14 +1,14 @@
1
1
  const WRITE_SCHEMATIC_FACTORY_FUNCTION = `export const writeSchematicFactory = async (path: string) => {
2
- const content = Buffer.from(schematicFactoryCjsBase64, "base64").toString("utf-8");
2
+ const content = Buffer.from(schematicFactoryCjsBase64, 'base64').toString('utf-8')
3
3
  const fs = await import('fs/promises')
4
- await fs.writeFile(path, content);
5
- };
6
- `;
4
+ await fs.writeFile(path, content)
5
+ }`;
7
6
  export const getGeneratedFileContent = (encodedContent) => {
8
7
  const generatedFileContent = `// Auto-generated file
9
8
  /* eslint-disable */
10
9
 
11
- export const schematicFactoryCjsBase64 = "${encodedContent}";
10
+ export const schematicFactoryCjsBase64 =
11
+ '${encodedContent}'
12
12
 
13
13
  ${WRITE_SCHEMATIC_FACTORY_FUNCTION}
14
14
  `;
@@ -50,7 +50,7 @@ export async function writeFiles(baseDir: string) {
50
50
 
51
51
  if (typeof value === 'string') {
52
52
  await writeFile(
53
- fullPath,
53
+ fullPath,
54
54
  Buffer.from(value, 'base64').toString('utf-8')
55
55
  )
56
56
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atls/code-schematics",
3
- "version": "2.0.27",
3
+ "version": "2.0.29",
4
4
  "license": "BSD-3-Clause",
5
5
  "type": "module",
6
6
  "exports": {
@@ -29,7 +29,7 @@
29
29
  "strip-json-comments": "3.1.1"
30
30
  },
31
31
  "devDependencies": {
32
- "@atls/code-runtime": "2.1.33",
32
+ "@atls/code-runtime": "2.1.34",
33
33
  "@types/node": "24.12.2",
34
34
  "@yarnpkg/cli": "4.14.1",
35
35
  "@yarnpkg/core": "4.7.0",