Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

create-salt-project

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-salt-project - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

5

dist/package.json
{
"name": "create-salt-project",
"version": "1.0.8",
"version": "1.0.9",
"description": "",

@@ -14,3 +14,4 @@ "bin": {

"link-cli": "pnpm link --global && cp package.json dist/package.json",
"publish-cli": "pnpm version patch && cp package.json dist/package.json && pnpm publish --access public --no-git-checks"
"publish-cli": "pnpm version patch && cp package.json dist/package.json && pnpm publish --access public --no-git-checks",
"build": "rm -rf dist && tsc"
},

@@ -17,0 +18,0 @@ "keywords": [],

4

dist/src/packages/angular.js

@@ -23,5 +23,3 @@ import { execCommand, execCommandOnProject, execWriteFile, log, spinner, } from "../utils.js";

await execCommandOnProject(this.answers)(`ng generate config karma`);
const packageJson = require(this.answers.CWD +
this.answers.projectName +
"/package.json");
const packageJson = JSON.parse((await execCommandOnProject(this.answers)("cat package.json")));
packageJson.scripts = {

@@ -28,0 +26,0 @@ ...packageJson.scripts,

@@ -334,5 +334,3 @@ import { log } from "console";

await execWriteFile(this.answers, ".lintstagedrc.js", this.lintStagedConfiguration);
const packageJson = require(this.answers.CWD +
this.answers.projectName +
"/package.json");
const packageJson = JSON.parse((await execCommandOnProject(this.answers)("cat package.json")));
packageJson.scripts.lint = "eslint .";

@@ -348,5 +346,3 @@ packageJson.scripts.lintfix = "eslint . --fix";

await execWriteFile(this.answers, ".prettierrc.json", JSON.stringify(this.formatterConfiguration));
const packageJson = require(this.answers.CWD +
this.answers.projectName +
"/package.json");
const packageJson = JSON.parse((await execCommandOnProject(this.answers)("cat package.json")));
packageJson.scripts.format =

@@ -375,5 +371,4 @@ 'prettier --write "./**/*.{js,jsx,ts,tsx,css,scss,md,json}" .';

await execCommandOnProject(this.answers)(this.commandsInstallPrecommitLiteral[this.answers.packageManager]);
let packageJsonObject = require(this.answers.CWD +
this.answers.projectName +
"/package.json");
let packageJsonString = (await execCommandOnProject(this.answers)("cat package.json"));
let packageJsonObject = JSON.parse(packageJsonString);
if (this.answers.packageManager === "yarn") {

@@ -389,5 +384,4 @@ this.createPostinstallScript(packageJsonObject);

await execWriteFile(this.answers, ".husky/pre-commit", commitMessage);
packageJsonObject = require(this.answers.CWD +
this.answers.projectName +
"/package.json");
packageJsonString = (await execCommandOnProject(this.answers)("cat package.json"));
packageJsonObject = JSON.parse(packageJsonString);
await this.createSaltPrecommit(this.answers, packageJsonObject);

@@ -394,0 +388,0 @@ await execWriteFile(this.answers, "package.json", JSON.stringify(packageJsonObject));

@@ -107,5 +107,3 @@ import { execCommand, execCommandOnProject, execWriteFile, log, spinner, } from "../utils.js";

await execWriteFile(this.answers, "jest.setup.ts", this.jestSetupString);
const packageJson = require(this.answers.CWD +
this.answers.projectName +
"/package.json");
const packageJson = JSON.parse((await execCommandOnProject(this.answers)("cat package.json")));
packageJson.scripts = {

@@ -112,0 +110,0 @@ ...packageJson.scripts,

{
"name": "create-salt-project",
"version": "1.0.8",
"version": "1.0.9",
"description": "",

@@ -32,4 +32,5 @@ "bin": {

"link-cli": "pnpm link --global && cp package.json dist/package.json",
"publish-cli": "pnpm version patch && cp package.json dist/package.json && pnpm publish --access public --no-git-checks"
"publish-cli": "pnpm version patch && cp package.json dist/package.json && pnpm publish --access public --no-git-checks",
"build": "rm -rf dist && tsc"
}
}

@@ -50,11 +50,11 @@ import { TAnswers } from "../types.js";

// const packageJson = JSON.parse(
// (await execCommandOnProject(this.answers)(
// "cat package.json"
// )) as unknown as string
// );
const packageJson = JSON.parse(
(await execCommandOnProject(this.answers)(
"cat package.json"
)) as unknown as string
);
const packageJson = require(this.answers.CWD +
this.answers.projectName +
"/package.json");
// const packageJson = require(this.answers.CWD +
// this.answers.projectName +
// "/package.json");

@@ -61,0 +61,0 @@ packageJson.scripts = {

@@ -423,11 +423,11 @@ import { log } from "console";

// const packageJson = JSON.parse(
// (await execCommandOnProject(this.answers)(
// "cat package.json"
// )) as unknown as string
// );
const packageJson = JSON.parse(
(await execCommandOnProject(this.answers)(
"cat package.json"
)) as unknown as string
);
const packageJson = require(this.answers.CWD +
this.answers.projectName +
"/package.json");
// const packageJson = require(this.answers.CWD +
// this.answers.projectName +
// "/package.json");

@@ -472,11 +472,11 @@ packageJson.scripts.lint = "eslint .";

// const packageJson = JSON.parse(
// (await execCommandOnProject(this.answers)(
// "cat package.json"
// )) as unknown as string
// );
const packageJson = JSON.parse(
(await execCommandOnProject(this.answers)(
"cat package.json"
)) as unknown as string
);
const packageJson = require(this.answers.CWD +
this.answers.projectName +
"/package.json");
// const packageJson = require(this.answers.CWD +
// this.answers.projectName +
// "/package.json");

@@ -556,11 +556,11 @@ packageJson.scripts.format =

// let packageJsonString: string = (await execCommandOnProject(this.answers)(
// "cat package.json"
// )) as unknown as string;
let packageJsonString: string = (await execCommandOnProject(this.answers)(
"cat package.json"
)) as unknown as string;
// let packageJsonObject = JSON.parse(packageJsonString);
let packageJsonObject = JSON.parse(packageJsonString);
let packageJsonObject = require(this.answers.CWD +
this.answers.projectName +
"/package.json");
// let packageJsonObject = require(this.answers.CWD +
// this.answers.projectName +
// "/package.json");

@@ -595,9 +595,7 @@ if (this.answers.packageManager === "yarn") {

// packageJsonString = (await execCommandOnProject(this.answers)(
// "cat package.json"
// )) as unknown as string;
packageJsonString = (await execCommandOnProject(this.answers)(
"cat package.json"
)) as unknown as string;
packageJsonObject = require(this.answers.CWD +
this.answers.projectName +
"/package.json");
packageJsonObject = JSON.parse(packageJsonString);

@@ -604,0 +602,0 @@ await this.createSaltPrecommit(this.answers, packageJsonObject);

@@ -199,11 +199,11 @@ import { TAnswers } from "../types.js";

// const packageJson = JSON.parse(
// (await execCommandOnProject(this.answers)(
// "cat package.json"
// )) as unknown as string
// );
const packageJson = JSON.parse(
(await execCommandOnProject(this.answers)(
"cat package.json"
)) as unknown as string
);
const packageJson = require(this.answers.CWD +
this.answers.projectName +
"/package.json");
// const packageJson = require(this.answers.CWD +
// this.answers.projectName +
// "/package.json");

@@ -210,0 +210,0 @@ packageJson.scripts = {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc