From ec824c48dfbd7f77a1bdaec6591d07cfc86c2604 Mon Sep 17 00:00:00 2001 From: Sander Elias Date: Mon, 17 Aug 2020 15:24:44 +0200 Subject: [PATCH] feat(scully): limit scully to node 12 and up (#852) --- libs/scully/.npmrc | 1 + libs/scully/package.json | 3 +++ package-lock.json | 46 ++++++++++++++++++++++++++++++++++++---- workspace.json | 2 +- 4 files changed, 47 insertions(+), 5 deletions(-) create mode 100644 libs/scully/.npmrc diff --git a/libs/scully/.npmrc b/libs/scully/.npmrc new file mode 100644 index 000000000..b6f27f135 --- /dev/null +++ b/libs/scully/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/libs/scully/package.json b/libs/scully/package.json index 23a41a5a2..a7187de35 100644 --- a/libs/scully/package.json +++ b/libs/scully/package.json @@ -9,6 +9,9 @@ "bin": { "scully": "./scully.js" }, + "engines": { + "node": ">=12" + }, "main": "/index.js", "author": "@herodevs", "license": "MIT", diff --git a/package-lock.json b/package-lock.json index 18ec3d4e7..b1b750385 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6021,6 +6021,35 @@ "buffer-from": "^1.0.0", "source-map": "^0.6.0" } + }, + "terser-webpack-plugin": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-1.4.3.tgz", + "integrity": "sha512-QMxecFz/gHQwteWwSo5nTc6UaICqN1bMedC5sMtUc7y3Ha3Q8y6ZO0iCR8pq4RJC8Hjf0FEPEHZqcMB/+DFCrA==", + "dev": true, + "requires": { + "cacache": "^12.0.2", + "find-cache-dir": "^2.1.0", + "is-wsl": "^1.1.0", + "schema-utils": "^1.0.0", + "serialize-javascript": "^2.1.2", + "source-map": "^0.6.1", + "terser": "^4.1.2", + "webpack-sources": "^1.4.0", + "worker-farm": "^1.7.0" + }, + "dependencies": { + "webpack-sources": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.4.3.tgz", + "integrity": "sha512-lgTS3Xhv1lCOKo7SA5TjKXMjpSM4sBjNV5+q2bqesbSPs5FjGmU6jjtBSkX9b4qW87vDIsCIlUPOEhbZrMdjeQ==", + "dev": true, + "requires": { + "source-list-map": "^2.0.0", + "source-map": "~0.6.1" + } + } + } } } }, @@ -8156,22 +8185,31 @@ } }, "terser-webpack-plugin": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-1.4.3.tgz", - "integrity": "sha512-QMxecFz/gHQwteWwSo5nTc6UaICqN1bMedC5sMtUc7y3Ha3Q8y6ZO0iCR8pq4RJC8Hjf0FEPEHZqcMB/+DFCrA==", + "version": "1.4.5", + "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-1.4.5.tgz", + "integrity": "sha512-04Rfe496lN8EYruwi6oPQkG0vo8C+HT49X687FZnpPF0qMAIHONI6HEXYPKDOE8e5HjXTyKfqRd/agHtH0kOtw==", "dev": true, "requires": { "cacache": "^12.0.2", "find-cache-dir": "^2.1.0", "is-wsl": "^1.1.0", "schema-utils": "^1.0.0", - "serialize-javascript": "^2.1.2", + "serialize-javascript": "^4.0.0", "source-map": "^0.6.1", "terser": "^4.1.2", "webpack-sources": "^1.4.0", "worker-farm": "^1.7.0" }, "dependencies": { + "serialize-javascript": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-4.0.0.tgz", + "integrity": "sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==", + "dev": true, + "requires": { + "randombytes": "^2.1.0" + } + }, "source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", diff --git a/workspace.json b/workspace.json index 651206046..9c0a8c25a 100644 --- a/workspace.json +++ b/workspace.json @@ -31,7 +31,7 @@ "tsConfig": "libs/scully/tsconfig.json", "packageJson": "libs/scully/package.json", "main": "libs/scully/src/index.ts", - "assets": ["libs/scully/*.md"] + "assets": ["libs/scully/*.md", "libs/scully/.npmrc"] } } }