Skip to content

Commit 0debe68

Browse files
Chau TranChau Tran
Chau Tran
authored and
Chau Tran
committed
chore(core): adjust generate json script
1 parent fc4d962 commit 0debe68

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

libs/angular-three/metadata.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

libs/angular-three/ng-package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@
44
"lib": {
55
"entryFile": "src/index.ts"
66
},
7-
"allowedNonPeerDependencies": ["ngx-resize", "@nx/devkit", "nx"],
8-
"assets": ["metadata.json", "web-types.json"]
7+
"allowedNonPeerDependencies": ["ngx-resize", "@nx/devkit", "nx"]
98
}

libs/angular-three/web-types.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

tools/scripts/generate-json.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createWriteStream, existsSync, unlinkSync, writeFileSync, mkdirSync } from 'fs';
1+
import { createWriteStream, existsSync, mkdirSync, unlinkSync, writeFileSync } from 'fs';
22
import ts from 'typescript';
33
import { format } from 'util';
44

@@ -254,11 +254,11 @@ ts.forEachChild(sourceFile, (node) => {
254254
}
255255
});
256256

257-
writeFileSync('libs/angular-three/metadata.json', JSON.stringify(metadataJson));
258-
writeFileSync('libs/angular-three/web-types.json', JSON.stringify(webTypesJson));
257+
writeFileSync('dist/libs/angular-three/metadata.json', JSON.stringify(metadataJson));
258+
writeFileSync('dist/libs/angular-three/web-types.json', JSON.stringify(webTypesJson));
259259

260260
if (!existsSync('node_modules/angular-three')) {
261-
mkdirSync('node_modules/angular-three')
261+
mkdirSync('node_modules/angular-three');
262262
}
263263
writeFileSync('node_modules/angular-three/metadata.json', JSON.stringify(metadataJson));
264-
writeFileSync('node_modules/angular-three/web-types.json', JSON.stringify(webTypesJson));
264+
writeFileSync('node_modules/angular-three/web-types.json', JSON.stringify(webTypesJson));

0 commit comments

Comments
 (0)