@netlify/framework-info
Advanced tools
Comparing version 9.7.2 to 9.8.0
{ | ||
"name": "@netlify/framework-info", | ||
"version": "9.7.2", | ||
"version": "9.8.0", | ||
"description": "Framework detection utility", | ||
@@ -8,20 +8,19 @@ "type": "module", | ||
"exports": { | ||
"node": "./src/main.js", | ||
"node": "./lib/main.js", | ||
"default": "./dist/index.umd.cjs" | ||
}, | ||
"files": [ | ||
"build/*.js", | ||
"src/**/*.js", | ||
"lib", | ||
"dist/index.umd.cjs" | ||
], | ||
"scripts": { | ||
"prebuild": "node scripts/transform_json.js", | ||
"build": "run-s build:*", | ||
"build:ts": "tsc", | ||
"build:json": "node scripts/transform_json.js", | ||
"build:browser": "run-s build:browser:*", | ||
"build:browser:core": "vite build", | ||
"build:browser:site-root": "cpy index.html ./dist", | ||
"test": "npm run test:dev", | ||
"test:dev": "ava", | ||
"test:ci": "c8 -r lcovonly -r text -r json ava" | ||
"test": "vitest run", | ||
"test:dev": "vitest", | ||
"test:ci": "vitest run --reporter=default" | ||
}, | ||
@@ -62,6 +61,5 @@ "keywords": [ | ||
"dependencies": { | ||
"ajv": "^8.0.0", | ||
"ajv": "^8.12.0", | ||
"filter-obj": "^3.0.0", | ||
"find-up": "^6.3.0", | ||
"fs-extra": "^10.1.0", | ||
"is-plain-obj": "^4.0.0", | ||
@@ -77,15 +75,14 @@ "locate-path": "^7.0.0", | ||
"devDependencies": { | ||
"ava": "^4.0.0", | ||
"babel-loader": "^8.2.2", | ||
"c8": "^7.11.0", | ||
"cpy": "^9.0.0", | ||
"cpy-cli": "^4.0.0", | ||
"del": "^6.0.0", | ||
"fast-glob": "^3.2.12", | ||
"npm-run-all": "^4.1.5", | ||
"path-browserify": "^1.0.1", | ||
"rollup-plugin-node-polyfills": "^0.2.1", | ||
"test-each": "^4.0.0", | ||
"tmp-promise": "^3.0.2", | ||
"typescript": "^4.9.4", | ||
"vite": "^3.1.6" | ||
"vite": "^4.0.4", | ||
"vitest": "^0.27.1" | ||
}, | ||
@@ -99,3 +96,3 @@ "engines": { | ||
}, | ||
"gitHead": "356667c6173362b294f9037efdb7b5ef1c726d48" | ||
"gitHead": "d78a65c209ed987d3475cd1f37cf357693b99e3c" | ||
} |
@@ -21,3 +21,3 @@ Framework detection utility. | ||
```js | ||
import { listFrameworks, hasFramework, getFramework } from '@netlify/framework-info' | ||
import { listFrameworks, hasFramework, getFramework, getFrameworkById } from '@netlify/framework-info' | ||
@@ -85,2 +85,20 @@ console.log(await listFrameworks({ projectDir: './path/to/gatsby/website' })) | ||
// } | ||
console.log(getFrameworkById('vue')) | ||
// { | ||
// id: 'vue', | ||
// name: 'Vue.js', | ||
// category: 'frontend_framework', | ||
// dev: { | ||
// commands: ['npm run serve'], | ||
// port: 8080, | ||
// pollingStrategies: [{ name: 'TCP' }, { name: 'HTTP' }] | ||
// }, | ||
// build: { | ||
// commands: ['vue-cli-service build'], | ||
// directory: 'dist' | ||
// }, | ||
// env: {}, | ||
// plugins: [] | ||
// } | ||
``` | ||
@@ -87,0 +105,0 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
271444
11
12
26
2982
395
1
- Removedfs-extra@^10.1.0
- Removedfs-extra@10.1.0(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedjsonfile@6.1.0(transitive)
- Removeduniversalify@2.0.1(transitive)
Updatedajv@^8.12.0