From bbd1f1e6062bb6b88e1fdee7010acc6a374a49ec Mon Sep 17 00:00:00 2001 From: Alejandro Lembke Barrientos Date: Wed, 3 Aug 2022 14:56:13 +0000 Subject: [PATCH] PR-057563: updating package and removing bin command from package json on npx. --- bin/cli.js | 6 +++++- package-lock.json | 32 ++++++++++++++++---------------- package.json | 6 +++--- 3 files changed, 24 insertions(+), 20 deletions(-) diff --git a/bin/cli.js b/bin/cli.js index c84056c..c86ea2e 100644 --- a/bin/cli.js +++ b/bin/cli.js @@ -19,6 +19,7 @@ const cleanGitHistoryCommand = `cd ${repoName} && rm -rf .git && git init && git const cleanGitHistoryCommandWindows = `cd ${repoName} && rmdir .git /s /q && git init && git add --all -- ":!.github" ":!bin" && git commit -m "Initial commit"` const deleteFoldersCommand = `cd ${repoName} && rm -rf .github && rm -rf bin` const deleteFoldersCommandWindows = `cd ${repoName} && rmdir .github /s /q && rmdir bin /s /q` +const deleteBinCommand = `cd ${repoName} && sed -i 's+"bin": "./bin/cli.js",++g` console.log(`Cloning the repository with name ${repoName}`); const checkedOut = runCommand(gitCheckoutCommand); @@ -38,4 +39,7 @@ console.log('Create a .env file with ENV=development(defauld: production), PORT= console.log(`Then you can run: npm start:dev`); const deleteFolders = isWin ? runCommand(deleteFoldersCommandWindows) : runCommand(deleteFoldersCommand); -if(!deleteFolders) process.exit(-1); \ No newline at end of file +if(!deleteFolders) process.exit(-1); + +const deleteBin = runCommand(deleteBinCommand); +if(!deleteBin) process.exit(-1); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index b61d6a3..f9d8649 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@aleleba/create-react-ssr", - "version": "3.0.14", + "version": "3.0.16", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@aleleba/create-react-ssr", - "version": "3.0.14", + "version": "3.0.16", "license": "MIT", "dependencies": { "@babel/register": "^7.18.9", @@ -47,7 +47,7 @@ "@pmmmwh/react-refresh-webpack-plugin": "^0.5.7", "@testing-library/jest-dom": "^5.16.4", "@testing-library/react": "^13.3.0", - "@testing-library/user-event": "^14.4.0", + "@testing-library/user-event": "^14.4.1", "@types/jest": "^28.1.6", "@types/node": "^18.6.3", "@types/react": "^18.0.15", @@ -75,7 +75,7 @@ "mini-css-extract-plugin": "^2.6.1", "react-refresh": "^0.14.0", "redux-devtools-extension": "^2.13.9", - "sass": "^1.54.0", + "sass": "^1.54.1", "sass-loader": "^13.0.2", "style-loader": "^3.3.1", "terser-webpack-plugin": "^5.3.3", @@ -3216,9 +3216,9 @@ } }, "node_modules/@testing-library/user-event": { - "version": "14.4.0", - "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-14.4.0.tgz", - "integrity": "sha512-S1QbHbTy8ROlYdvIlgnrfeaX7H8Xw73hAS8jpQ5bMx016idgr6J/7cWBFHD8o2Dxz4YjXOkkGYTapzbqWhCmyw==", + "version": "14.4.1", + "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-14.4.1.tgz", + "integrity": "sha512-Gr20dje1RaNxZ1ehHGPvFkLswfetBQKCfRD/lo6sUJQ52X2TV/QnqUpkjoShfEebrB2KiTPfQkcONwdQiofLhg==", "dev": true, "engines": { "node": ">=12", @@ -13234,9 +13234,9 @@ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, "node_modules/sass": { - "version": "1.54.0", - "resolved": "https://registry.npmjs.org/sass/-/sass-1.54.0.tgz", - "integrity": "sha512-C4zp79GCXZfK0yoHZg+GxF818/aclhp9F48XBu/+bm9vXEVAYov9iU3FBVRMq3Hx3OA4jfKL+p2K9180mEh0xQ==", + "version": "1.54.1", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.54.1.tgz", + "integrity": "sha512-GHJJr31Me32RjjUBagyzx8tzjKBUcDwo5239XANIRBq0adDu5iIG0aFO0i/TBb/4I9oyxkEv44nq/kL1DxdDhA==", "dev": true, "dependencies": { "chokidar": ">=3.0.0 <4.0.0", @@ -17846,9 +17846,9 @@ } }, "@testing-library/user-event": { - "version": "14.4.0", - "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-14.4.0.tgz", - "integrity": "sha512-S1QbHbTy8ROlYdvIlgnrfeaX7H8Xw73hAS8jpQ5bMx016idgr6J/7cWBFHD8o2Dxz4YjXOkkGYTapzbqWhCmyw==", + "version": "14.4.1", + "resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-14.4.1.tgz", + "integrity": "sha512-Gr20dje1RaNxZ1ehHGPvFkLswfetBQKCfRD/lo6sUJQ52X2TV/QnqUpkjoShfEebrB2KiTPfQkcONwdQiofLhg==", "dev": true, "requires": {} }, @@ -25309,9 +25309,9 @@ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" }, "sass": { - "version": "1.54.0", - "resolved": "https://registry.npmjs.org/sass/-/sass-1.54.0.tgz", - "integrity": "sha512-C4zp79GCXZfK0yoHZg+GxF818/aclhp9F48XBu/+bm9vXEVAYov9iU3FBVRMq3Hx3OA4jfKL+p2K9180mEh0xQ==", + "version": "1.54.1", + "resolved": "https://registry.npmjs.org/sass/-/sass-1.54.1.tgz", + "integrity": "sha512-GHJJr31Me32RjjUBagyzx8tzjKBUcDwo5239XANIRBq0adDu5iIG0aFO0i/TBb/4I9oyxkEv44nq/kL1DxdDhA==", "dev": true, "requires": { "chokidar": ">=3.0.0 <4.0.0", diff --git a/package.json b/package.json index 32dda7c..7ec70c6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@aleleba/create-react-ssr", - "version": "3.0.15", + "version": "3.0.16", "description": "Starter Kit of server side render of react", "bin": "./bin/cli.js", "main": "src/server/index", @@ -66,7 +66,7 @@ "@pmmmwh/react-refresh-webpack-plugin": "^0.5.7", "@testing-library/jest-dom": "^5.16.4", "@testing-library/react": "^13.3.0", - "@testing-library/user-event": "^14.4.0", + "@testing-library/user-event": "^14.4.1", "@types/jest": "^28.1.6", "@types/node": "^18.6.3", "@types/react": "^18.0.15", @@ -94,7 +94,7 @@ "mini-css-extract-plugin": "^2.6.1", "react-refresh": "^0.14.0", "redux-devtools-extension": "^2.13.9", - "sass": "^1.54.0", + "sass": "^1.54.1", "sass-loader": "^13.0.2", "style-loader": "^3.3.1", "terser-webpack-plugin": "^5.3.3",