@rollup/plugin-json
Advanced tools
Comparing version 4.1.0 to 5.0.0
{ | ||
"name": "@rollup/plugin-json", | ||
"version": "4.1.0", | ||
"version": "5.0.0", | ||
"publishConfig": { | ||
@@ -9,22 +9,30 @@ "access": "public" | ||
"license": "MIT", | ||
"repository": "rollup/plugins", | ||
"repository": { | ||
"url": "rollup/plugins", | ||
"directory": "packages/json" | ||
}, | ||
"author": "rollup", | ||
"homepage": "https://github.com/rollup/plugins/tree/master/packages/json#readme", | ||
"bugs": "https://github.com/rollup/plugins/issues", | ||
"main": "dist/index.js", | ||
"main": "./dist/cjs/index.js", | ||
"module": "./dist/es/index.js", | ||
"exports": { | ||
"types": "./types/index.d.ts", | ||
"import": "./dist/es/index.js", | ||
"default": "./dist/cjs/index.js" | ||
}, | ||
"engines": { | ||
"node": ">=14.0.0" | ||
}, | ||
"scripts": { | ||
"build": "rollup -c", | ||
"ci:coverage": "nyc pnpm run test && nyc report --reporter=text-lcov > coverage.lcov", | ||
"ci:lint": "pnpm run build && pnpm run lint", | ||
"ci:coverage": "nyc pnpm test && nyc report --reporter=text-lcov > coverage.lcov", | ||
"ci:lint": "pnpm build && pnpm lint", | ||
"ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", | ||
"ci:test": "pnpm run test -- --verbose && pnpm run test:ts", | ||
"lint": "pnpm run lint:js && pnpm run lint:docs && pnpm run lint:json && pnpm run lint:package", | ||
"lint:docs": "prettier --single-quote --write README.md", | ||
"lint:js": "eslint --fix --cache src test types --ext .js,.ts", | ||
"lint:json": "prettier --write \"test/fixtures/!(garbage)/*.json\"", | ||
"lint:package": "prettier --write package.json --plugin=prettier-plugin-package", | ||
"ci:test": "pnpm test -- --verbose && pnpm test:ts", | ||
"prebuild": "del-cli dist", | ||
"prepare": "pnpm run build", | ||
"prepublishOnly": "pnpm run lint && pnpm run test", | ||
"pretest": "pnpm run build", | ||
"prepare": "if [ ! -d 'dist' ]; then pnpm build; fi", | ||
"prerelease": "pnpm build", | ||
"pretest": "pnpm build", | ||
"release": "pnpm --workspace-root plugin:release --pkg $npm_package_name", | ||
"test": "ava", | ||
@@ -35,2 +43,3 @@ "test:ts": "tsc types/index.d.ts test/types.ts --noEmit" | ||
"dist", | ||
"!dist/**/*.map", | ||
"types", | ||
@@ -49,13 +58,21 @@ "README.md", | ||
"peerDependencies": { | ||
"rollup": "^1.20.0 || ^2.0.0" | ||
"rollup": "^1.20.0||^2.0.0||^3.0.0" | ||
}, | ||
"peerDependenciesMeta": { | ||
"rollup": { | ||
"optional": true | ||
} | ||
}, | ||
"dependencies": { | ||
"@rollup/pluginutils": "^3.0.8" | ||
"@rollup/pluginutils": "^4.2.1" | ||
}, | ||
"devDependencies": { | ||
"@rollup/plugin-buble": "^0.21.0", | ||
"@rollup/plugin-node-resolve": "^7.0.0", | ||
"source-map-support": "^0.5.16" | ||
"@rollup/plugin-node-resolve": "^14.1.0", | ||
"rollup": "^3.0.0-7", | ||
"source-map-support": "^0.5.21" | ||
}, | ||
"types": "./types/index.d.ts", | ||
"ava": { | ||
"workerThreads": false, | ||
"files": [ | ||
@@ -67,5 +84,3 @@ "!**/fixtures/**", | ||
] | ||
}, | ||
"module": "dist/index.es.js", | ||
"types": "types/index.d.ts" | ||
} | ||
} |
@@ -16,3 +16,3 @@ [npm]: https://img.shields.io/npm/v/@rollup/plugin-json | ||
This plugin requires an [LTS](https://github.com/nodejs/Release) Node version (v8.0.0+) and Rollup v1.20.0+. | ||
This plugin requires an [LTS](https://github.com/nodejs/Release) Node version (v14.0.0+) and Rollup v1.20.0+. | ||
@@ -50,3 +50,5 @@ ## Install | ||
// src/index.js | ||
import pkg from './package.json'; | ||
import { readFileSync } from 'fs'; | ||
const pkg = JSON.parse(readFileSync(new URL('./package.json', import.meta.url), 'utf8')); | ||
console.log(`running version ${pkg.version}`); | ||
@@ -53,0 +55,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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
106
104
8074
4
6
+ Added@rollup/pluginutils@4.2.1(transitive)
+ Addedestree-walker@2.0.2(transitive)
+ Addedrollup@3.29.5(transitive)
- Removed@rollup/pluginutils@3.1.0(transitive)
- Removed@types/estree@0.0.39(transitive)
- Removedestree-walker@1.0.1(transitive)
- Removedrollup@2.79.2(transitive)
Updated@rollup/pluginutils@^4.2.1