mirror of
https://github.com/sasjs/adapter.git
synced 2025-12-10 17:04:36 +00:00
chore: address requested changes
This commit is contained in:
@@ -1,14 +1,9 @@
|
|||||||
const result = process.versions
|
const result = process.versions
|
||||||
if (result && result.node) {
|
if (result && result.node) {
|
||||||
if (parseInt(result.node) >= 14) {
|
if (parseInt(result.node) < 14) {
|
||||||
console.log(
|
|
||||||
'\x1b[32m%s\x1b[0m',
|
|
||||||
`Good to Go with your Node Version: ${result.node}`
|
|
||||||
)
|
|
||||||
} else {
|
|
||||||
console.log(
|
console.log(
|
||||||
'\x1b[31m%s\x1b[0m',
|
'\x1b[31m%s\x1b[0m',
|
||||||
`Package installation(npm install) failed due to Node Version,\nPlease install and use Node Version >=14\nYour current Node Version is: ${result.node}`
|
`Process failed due to Node Version,\nPlease install and use Node Version >= 14\nYour current Node Version is: ${result.node}`
|
||||||
)
|
)
|
||||||
process.exit(1)
|
process.exit(1)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
"homepage": "https://adapter.sasjs.io",
|
"homepage": "https://adapter.sasjs.io",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"preinstall": "node checkNodeVersion",
|
"preinstall": "node checkNodeVersion",
|
||||||
|
"prebuild": "node checkNodeVersion",
|
||||||
"build": "rimraf build && rimraf node && mkdir node && copyfiles -u 1 \"./src/**/*\" ./node && webpack && rimraf build/src && rimraf node",
|
"build": "rimraf build && rimraf node && mkdir node && copyfiles -u 1 \"./src/**/*\" ./node && webpack && rimraf build/src && rimraf node",
|
||||||
"package:lib": "npm run build && copyfiles ./package.json ./checkNodeVersion.js build && cd build && npm version \"5.0.0\" && npm pack",
|
"package:lib": "npm run build && copyfiles ./package.json ./checkNodeVersion.js build && cd build && npm version \"5.0.0\" && npm pack",
|
||||||
"publish:lib": "npm run build && cd build && npm publish",
|
"publish:lib": "npm run build && cd build && npm publish",
|
||||||
|
|||||||
Reference in New Issue
Block a user