@onflow/fcl-bundle
Advanced tools
Comparing version 1.4.0-alpha.0 to 1.4.0-typescript.0
# @onflow/fcl-bundle | ||
## 1.4.0-alpha.0 | ||
## 1.4.0-typescript.0 | ||
### Minor Changes | ||
- TS build | ||
- [#1801](https://github.com/onflow/fcl-js/pull/1801) [`9fca84a3`](https://github.com/onflow/fcl-js/commit/9fca84a3151d7f6aeb33870a302e9793f024516b) Thanks [@nialexsan](https://github.com/nialexsan)! - Switched to rollup-plugin-typescript2 | ||
- [#1801](https://github.com/onflow/fcl-js/pull/1801) [`86ce9f75`](https://github.com/onflow/fcl-js/commit/86ce9f75b5542a6bce76012e36a7a3d4fb6867f2) Thanks [@nialexsan](https://github.com/nialexsan)! - TS build | ||
## 1.3.1 | ||
@@ -10,0 +12,0 @@ |
{ | ||
"name": "@onflow/fcl-bundle", | ||
"version": "1.4.0-alpha.0", | ||
"version": "1.4.0-typescript.0", | ||
"description": "FCL Bundler Tool", | ||
@@ -18,2 +18,3 @@ "license": "Apache-2.0", | ||
"@babel/preset-env": "^7.18.2", | ||
"@babel/preset-typescript": "^7.22.5", | ||
"@rollup/plugin-babel": "^6.0.3", | ||
@@ -24,7 +25,7 @@ "@rollup/plugin-commonjs": "^25.0.2", | ||
"@rollup/plugin-terser": "^0.4.3", | ||
"@rollup/plugin-typescript": "^11.1.2", | ||
"builtin-modules": "^3.3.0", | ||
"commander": "^9.3.0", | ||
"lodash": "^4.17.21", | ||
"rollup": "^2.75.5" | ||
"rollup": "^2.75.5", | ||
"rollup-plugin-typescript2": "^0.35.0" | ||
}, | ||
@@ -31,0 +32,0 @@ "bin": { |
@@ -7,4 +7,5 @@ const _ = require("lodash") | ||
const {babel} = require("@rollup/plugin-babel") | ||
const terser = require('@rollup/plugin-terser') | ||
const typescript = require('@rollup/plugin-typescript') | ||
const terser = require("@rollup/plugin-terser") | ||
const typescript = require("rollup-plugin-typescript2") | ||
const {DEFAULT_EXTENSIONS} = require("@babel/core") | ||
@@ -20,2 +21,3 @@ const builtinModules = require("builtin-modules") | ||
module.exports = function getInputOptions(package, build) { | ||
// ensure that that package has the required dependencies | ||
if (!package.dependencies["@babel/runtime"]) { | ||
@@ -27,2 +29,6 @@ throw new Error( | ||
// determine if we are building typescript | ||
const source = build.source | ||
const isTypeScript = source.endsWith(".ts") | ||
const babelRuntimeVersion = package.dependencies["@babel/runtime"].replace( | ||
@@ -50,3 +56,7 @@ /^[^0-9]*/, | ||
// exclude peer dependencies | ||
const resolveOnly = [new RegExp(`^(?!${Object.keys(package.peerDependencies || {}).join("|")}).*`)] | ||
const resolveOnly = [ | ||
new RegExp( | ||
`^(?!${Object.keys(package.peerDependencies || {}).join("|")}).*` | ||
), | ||
] | ||
@@ -61,8 +71,2 @@ let options = { | ||
plugins: [ | ||
typescript(), | ||
replace({ | ||
preventAssignment: true, | ||
PACKAGE_CURRENT_VERSION: JSON.stringify(package.version), | ||
}), | ||
commonjs(), | ||
nodeResolve({ | ||
@@ -73,5 +77,24 @@ browser: true, | ||
}), | ||
commonjs(), | ||
isTypeScript && | ||
typescript({ | ||
clean: true, | ||
include: [ | ||
"*.ts+(|x)", | ||
"**/*.ts+(|x)", | ||
"**/*.cts", | ||
"**/*.mts", | ||
"*.js+(|x)", | ||
"**/*.js+(|x)", | ||
"**/*.cjs", | ||
"**/*.mjs", | ||
], | ||
}), | ||
replace({ | ||
preventAssignment: true, | ||
PACKAGE_CURRENT_VERSION: JSON.stringify(package.version), | ||
}), | ||
babel({ | ||
babelHelpers: "runtime", | ||
presets: [["@babel/preset-env"]], | ||
presets: ["@babel/preset-env", "@babel/preset-typescript"], | ||
plugins: [ | ||
@@ -86,2 +109,3 @@ [ | ||
sourceMaps: true, | ||
extensions: [...DEFAULT_EXTENSIONS, ".ts", ".tsx"], | ||
}), | ||
@@ -88,0 +112,0 @@ /\.min\.js$/.test(build.entry) && |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
25376
463
0
13
+ Added@babel/plugin-syntax-jsx@7.25.9(transitive)
+ Added@babel/plugin-syntax-typescript@7.25.9(transitive)
+ Added@babel/plugin-transform-typescript@7.25.9(transitive)
+ Added@babel/preset-typescript@7.26.0(transitive)
+ Added@rollup/pluginutils@4.2.1(transitive)
+ Addedfind-cache-dir@3.3.2(transitive)
+ Addedfind-up@4.1.0(transitive)
+ Addedfs-extra@10.1.0(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedjsonfile@6.1.0(transitive)
+ Addedlocate-path@5.0.0(transitive)
+ Addedmake-dir@3.1.0(transitive)
+ Addedp-limit@2.3.0(transitive)
+ Addedp-locate@4.1.0(transitive)
+ Addedp-try@2.2.0(transitive)
+ Addedpath-exists@4.0.0(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedpkg-dir@4.2.0(transitive)
+ Addedrollup-plugin-typescript2@0.35.0(transitive)
+ Addedsemver@7.6.3(transitive)
+ Addedtslib@2.8.1(transitive)
+ Addeduniversalify@2.0.1(transitive)
- Removed@rollup/plugin-typescript@^11.1.2
- Removed@rollup/plugin-typescript@11.1.6(transitive)