Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@cryptograph/typescript-tooling

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cryptograph/typescript-tooling - npm Package Compare versions

Comparing version
1.0.1
to
1.0.2
+19
-34
index.js

@@ -20,40 +20,25 @@ const fs = require("fs");

console.log(
"Making sure there is a `tsconfig.json` which extends the one from this package."
);
const extendJSONConfig = fileName => {
console.log(
`Making sure there is a \`${fileName}.json\` which extends the one from this package.`
);
let tsconfigJSON;
let config;
try {
tsconfigJSON = require(`${process.env.INIT_CWD}/tsconfig`);
} catch (e) {
tsconfigJSON = {};
}
try {
config = require(`${process.env.INIT_CWD}/${fileName}`);
} catch (e) {
config = {};
}
tsconfigJSON.extends =
"./node_modules/@cryptograph/typescript-tooling/tsconfig";
if (!config.extends)
config.extends = `./node_modules/@cryptograph/typescript-tooling/${fileName}.json`;
fs.writeFileSync(
`${process.env.INIT_CWD}/tsconfig.json`,
JSON.stringify(tsconfigJSON, null, 2)
);
fs.writeFileSync(
`${process.env.INIT_CWD}/${fileName}.json`,
JSON.stringify(config, null, 2)
);
};
console.log(
"Making sure there is a `tslint.json` which extends the one from this package."
);
let tslintJSON;
try {
tslintJSON = require(`${process.env.INIT_CWD}/tslint`);
} catch (e) {
tslintJSON = {};
}
tslintJSON.extends =
"./node_modules/@cryptograph/typescript-tooling/tslint.json";
fs.writeFileSync(
`${process.env.INIT_CWD}/tslint.json`,
JSON.stringify(tslintJSON, null, 2)
);
extendJSONConfig("tsconfig");
extendJSONConfig("tslint");
{
"name": "@cryptograph/typescript-tooling",
"version": "1.0.1",
"version": "1.0.2",
"description":

@@ -5,0 +5,0 @@ "This package helps to keep all of the Typescript configuration and tooling synced up between seperate CryptoGraph projects.",