babel-preset-nodely
Advanced tools
Comparing version 0.4.2 to 0.4.3
"use strict"; | ||
// eslint-disable-line flowtype/no-weak-types | ||
function getPlugins() { | ||
return ['@babel/plugin-proposal-class-properties', '@babel/plugin-proposal-optional-chaining', '@babel/plugin-syntax-dynamic-import', '@babel/plugin-syntax-object-rest-spread']; | ||
// eslint-disable-line flowtype/no-weak-types | ||
function getPlugins(options) { | ||
var loose = typeof options.loose === 'boolean' ? options.loose : true; | ||
return [['@babel/plugin-proposal-class-properties', { | ||
loose: loose | ||
}], '@babel/plugin-proposal-optional-chaining', '@babel/plugin-syntax-dynamic-import', '@babel/plugin-syntax-object-rest-spread']; | ||
} | ||
@@ -24,3 +28,5 @@ | ||
return { | ||
plugins: getPlugins(), | ||
plugins: getPlugins(options || { | ||
loose: true | ||
}), | ||
presets: getPresets(options || { | ||
@@ -27,0 +33,0 @@ loose: true |
{ | ||
"name": "babel-preset-nodely", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "Babel preset used by nodely.", | ||
@@ -11,3 +11,3 @@ "main": "lib/index.js", | ||
"build": "nodely -s ./src -o ./lib -v && npm run gen-types", | ||
"gen-types": "flow gen-flow-files src --ignore \".+/__tests__/.+\" --out-dir lib", | ||
"gen-types": "flow-copy-source --ignore \"**/__tests__/**\" src lib", | ||
"postpublish": "codecov", | ||
@@ -43,8 +43,9 @@ "prepublishOnly": "npm run build", | ||
"babel-core": "^7.0.0-0", | ||
"babel-jest": "24.8.0", | ||
"codecov": "3.5.0", | ||
"jest": "24.8.0", | ||
"babel-jest": "^27.0.2", | ||
"codecov": "^3.8.2", | ||
"flow-copy-source": "2.0.9", | ||
"jest": "^27.0.3", | ||
"jest-serializer-path": "0.1.15", | ||
"lintly": "0.3.0", | ||
"nodely": "0.8.0" | ||
"lintly": "0.4.0", | ||
"nodely": "^1.1.1" | ||
}, | ||
@@ -51,0 +52,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6509
28
8
5