PR-057563: updating package and removing bin command from package json on npx.

This commit is contained in:
Alejandro Lembke Barrientos 2022-08-03 14:56:13 +00:00
parent 9fc8014012
commit bbd1f1e606
3 changed files with 24 additions and 20 deletions

View File

@ -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);
if(!deleteFolders) process.exit(-1);
const deleteBin = runCommand(deleteBinCommand);
if(!deleteBin) process.exit(-1);

32
package-lock.json generated
View File

@ -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",

View File

@ -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",