Socket
Socket
Sign inDemoInstall

@nestjs/schematics

Package Overview
Dependencies
Maintainers
2
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nestjs/schematics - npm Package Compare versions

Comparing version 9.0.3 to 9.0.4

8

dist/lib/application/files/js/jsconfig.json
{
"compilerOptions": {
"target": "ES6",
"experimentalDecorators": true
"target": "ES6",
"experimentalDecorators": true
},
"exclude": [
"node_modules",
"dist"
"node_modules",
"dist"
]
}

@@ -25,13 +25,13 @@ {

"@nestjs/testing": "^9.0.0",
"@babel/core": "7.18.13",
"@babel/node": "7.18.10",
"@babel/plugin-proposal-decorators": "7.18.10",
"@babel/plugin-transform-runtime": "7.18.10",
"@babel/preset-env": "7.18.10",
"@babel/core": "7.20.7",
"@babel/node": "7.20.7",
"@babel/plugin-proposal-decorators": "7.20.7",
"@babel/plugin-transform-runtime": "7.19.6",
"@babel/preset-env": "7.20.2",
"@babel/register": "7.18.9",
"@babel/runtime": "7.18.9",
"jest": "28.1.3",
"nodemon": "2.0.19",
"prettier": "2.7.1",
"supertest": "6.2.4"
"@babel/runtime": "7.20.7",
"jest": "29.3.1",
"nodemon": "2.0.20",
"prettier": "2.8.1",
"supertest": "6.3.3"
},

@@ -38,0 +38,0 @@ "jest": {

@@ -5,3 +5,3 @@ module.exports = {

project: 'tsconfig.json',
tsconfigRootDir : __dirname,
tsconfigRootDir: __dirname,
sourceType: 'module',

@@ -8,0 +8,0 @@ },

{
"$schema": "https://json.schemastore.org/nest-cli",
"collection": "@nestjs/schematics",
"sourceRoot": "src"
"sourceRoot": "src",
"compilerOptions": {
"deleteOutDir": true
}
}

@@ -9,3 +9,2 @@ {

"scripts": {
"prebuild": "rimraf dist",
"build": "nest build",

@@ -29,3 +28,2 @@ "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",

"reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2",
"rxjs": "^7.2.0"

@@ -38,4 +36,4 @@ },

"@types/express": "^4.17.13",
"@types/jest": "28.1.8",
"@types/node": "^16.0.0",
"@types/jest": "29.2.4",
"@types/node": "18.11.18",
"@types/supertest": "^2.0.11",

@@ -47,10 +45,10 @@ "@typescript-eslint/eslint-plugin": "^5.0.0",

"eslint-plugin-prettier": "^4.0.0",
"jest": "28.1.3",
"jest": "29.3.1",
"prettier": "^2.3.2",
"source-map-support": "^0.5.20",
"supertest": "^6.1.3",
"ts-jest": "28.0.8",
"ts-jest": "29.0.3",
"ts-loader": "^9.2.3",
"ts-node": "^10.0.0",
"tsconfig-paths": "4.1.0",
"tsconfig-paths": "4.1.1",
"typescript": "^4.7.4"

@@ -57,0 +55,0 @@ },

{
"compilerOptions": {
"target": "ES6",
"experimentalDecorators": true
"target": "ES6",
"experimentalDecorators": true
},
"exclude": [
"node_modules"
"node_modules"
]
}
}

@@ -117,4 +117,7 @@ "use strict";

const defaultFormatScriptName = 'format';
const defaultStartScriptName = 'start:prod';
const defaultTestScriptName = 'test:e2e';
if (!scripts[defaultTestScriptName] && !scripts[defaultFormatScriptName]) {
if (!scripts[defaultTestScriptName] &&
!scripts[defaultFormatScriptName] &&
!scripts[defaultStartScriptName]) {
return;

@@ -133,2 +136,7 @@ }

}
if (scripts[defaultStartScriptName] &&
scripts[defaultStartScriptName].indexOf('dist/main') >= 0) {
const defaultSourceRoot = options.rootDir !== undefined ? options.rootDir : defaults_1.DEFAULT_APPS_PATH;
scripts[defaultStartScriptName] = `node dist/${defaultSourceRoot}/${defaultAppName}/main`;
}
}

@@ -162,17 +170,16 @@ function updateJestOptions(jestOptions, options) {

}
try {
if (fse.existsSync(sourceRoot)) {
fse.moveSync(sourceRoot, (0, core_1.join)(projectRoot, appName, sourceRoot));
}
const testDir = 'test';
if (fse.existsSync(testDir)) {
fse.moveSync(testDir, (0, core_1.join)(projectRoot, appName, testDir));
}
}
catch (err) {
throw new schematics_1.SchematicsException(`The "${projectRoot}" directory exists already.`);
}
const appDestination = (0, core_1.join)(projectRoot, appName);
moveDirectoryTo(sourceRoot, appDestination, host);
moveDirectoryTo('test', appDestination, host);
return host;
};
}
function moveDirectoryTo(srcDir, destination, tree) {
tree.getDir(srcDir).visit((filePath, file) => {
const newFilePath = (0, core_1.join)(destination, filePath);
tree.create(newFilePath, file.content);
tree.delete(filePath);
});
tree.delete(srcDir);
}
function addAppsToCliOptions(projectRoot, projectName, appName) {

@@ -179,0 +186,0 @@ const rootPath = (0, core_1.join)(projectRoot, projectName);

{
"name": "@nestjs/schematics",
"version": "9.0.3",
"version": "9.0.4",
"description": "Nest - modern, fast, powerful node.js web framework (@schematics)",

@@ -44,5 +44,5 @@ "main": "dist/index.js",

"dependencies": {
"@angular-devkit/core": "14.2.1",
"@angular-devkit/schematics": "14.2.1",
"fs-extra": "10.1.0",
"@angular-devkit/core": "15.0.4",
"@angular-devkit/schematics": "15.0.4",
"fs-extra": "11.1.0",
"jsonc-parser": "3.2.0",

@@ -52,11 +52,11 @@ "pluralize": "8.0.0"

"devDependencies": {
"@commitlint/cli": "17.1.2",
"@commitlint/config-angular": "17.1.0",
"@commitlint/cli": "17.3.0",
"@commitlint/config-angular": "17.3.0",
"@types/fs-extra": "9.0.13",
"@types/jest": "28.1.8",
"@types/node": "16.11.56",
"@typescript-eslint/eslint-plugin": "5.36.1",
"@typescript-eslint/parser": "5.36.1",
"@types/jest": "29.2.4",
"@types/node": "18.11.18",
"@typescript-eslint/eslint-plugin": "5.47.1",
"@typescript-eslint/parser": "5.47.1",
"cpx": "1.5.0",
"eslint": "8.23.0",
"eslint": "8.30.0",
"eslint-config-prettier": "8.5.0",

@@ -66,9 +66,9 @@ "eslint-plugin-import": "2.26.0",

"gulp-clean": "0.4.0",
"husky": "8.0.1",
"jest": "28.1.3",
"husky": "8.0.2",
"jest": "29.3.1",
"nyc": "15.1.0",
"release-it": "15.4.1",
"ts-jest": "28.0.8",
"release-it": "15.5.1",
"ts-jest": "29.0.3",
"ts-node": "10.9.1",
"typescript": "~4.7.4"
"typescript": "4.9.4"
},

@@ -75,0 +75,0 @@ "peerDependencies": {

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