@netlify/build-info
Advanced tools
Comparing version 1.2.0 to 1.2.1
# Changelog | ||
### [1.2.1](https://www.github.com/netlify/build-info/compare/v1.2.0...v1.2.1) (2021-04-27) | ||
### Bug Fixes | ||
* **deps:** update dependency @netlify/framework-info to v4 ([#44](https://www.github.com/netlify/build-info/issues/44)) ([b5d862f](https://www.github.com/netlify/build-info/commit/b5d862fd5caae1a28729fbd31ccc303f99e91b87)) | ||
## [1.2.0](https://www.github.com/netlify/build-info/compare/v1.1.1...v1.2.0) (2021-04-13) | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "@netlify/build-info", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Build info utility", | ||
@@ -58,3 +58,3 @@ "main": "./src/main.js", | ||
"@commitlint/config-conventional": "^12.0.0", | ||
"@netlify/eslint-config-node": "^2.6.2", | ||
"@netlify/eslint-config-node": "^2.6.4", | ||
"ava": "^2.4.0", | ||
@@ -70,3 +70,3 @@ "execa": "^3.4.0", | ||
"dependencies": { | ||
"@netlify/framework-info": "^3.3.0", | ||
"@netlify/framework-info": "^4.0.0", | ||
"@npmcli/map-workspaces": "^1.0.3", | ||
@@ -73,0 +73,0 @@ "read-pkg": "^5.2.0", |
@@ -9,6 +9,9 @@ [![Build](https://github.com/netlify/build-info/workflows/Build/badge.svg)](https://github.com/netlify/build-info/actions) | ||
The purpose of this lib is to, given a project and a configuration, return a set of useful data for our build system. | ||
Currently it's only used to detect [`workspaces`](https://docs.npmjs.com/cli/v7/using-npm/workspaces), however one can | ||
easily extend it to detected other things such as package managers used, or other pieces of info not given by | ||
[@netlify/framework-info](https://github.com/netlify/framework-info) and most likely only kept within [`build-image`](https://github.com/netlify/build-image/blob/xenial/run-build-functions.sh#L214). | ||
Currently it's used to detect: | ||
- [`jsWorkspaces`](https://docs.npmjs.com/cli/v7/using-npm/workspaces) | ||
- [`frameworks`](https://github.com/netlify/framework-info) | ||
But it's possible to extend it in the future to extract other bits of information, such as the heuristics present in the | ||
[`build-image`](https://github.com/netlify/build-image/blob/xenial/run-build-functions.sh#L214). | ||
# Example (Node.js) | ||
@@ -28,3 +31,19 @@ ```js | ||
// ] | ||
// } | ||
// }, | ||
// frameworks: [ | ||
// { | ||
// name: 'gatsby', | ||
// category: 'static_site_generator', | ||
// dev: { | ||
// commands: ['gatsby develop'], | ||
// port: 8000 | ||
// }, | ||
// build: { | ||
// commands: ['gatsby build'], | ||
// directory: 'public' | ||
// }, | ||
// env: { GATSBY_LOGGER: 'yurnalist' }, | ||
// plugins: [] | ||
// } | ||
// ] | ||
// } | ||
@@ -41,3 +60,4 @@ | ||
// ] | ||
// } | ||
// }, | ||
// frameworks: [] | ||
// } | ||
@@ -59,3 +79,4 @@ })(); | ||
] | ||
} | ||
}, | ||
frameworks: [] | ||
} | ||
@@ -72,3 +93,19 @@ | ||
] | ||
} | ||
}, | ||
frameworks: [ | ||
{ | ||
name: 'gatsby', | ||
category: 'static_site_generator', | ||
dev: { | ||
commands: ['gatsby develop'], | ||
port: 8000 | ||
}, | ||
build: { | ||
commands: ['gatsby build'], | ||
directory: 'public' | ||
}, | ||
env: { GATSBY_LOGGER: 'yurnalist' }, | ||
plugins: [] | ||
} | ||
] | ||
} | ||
@@ -75,0 +112,0 @@ ``` |
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
11956
114
+ Added@netlify/framework-info@4.1.0(transitive)
- Removed@netlify/framework-info@3.3.0(transitive)