use package json helper for tsconfig
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
import { readFileSync, writeFileSync } from 'fs';
|
||||
import { writeFileSync } from 'fs';
|
||||
import { format } from 'prettier';
|
||||
|
||||
const packageJsonPath = 'package.json';
|
||||
const packageJsonData = JSON.parse(readFileSync(packageJsonPath).toString());
|
||||
const packageJsonName = packageJsonData.name;
|
||||
const packageJsonExports = packageJsonData.exports;
|
||||
import { packageJsonName, packageJsonExports } from '../package/index.js';
|
||||
|
||||
const tsconfigPath = 'tsconfig.json';
|
||||
const tsconfigComment = `// Don't edit this file directly. It is generated by /devops/tsconfig/index.js\n\n`;
|
||||
|
||||
Reference in New Issue
Block a user