123 lines
3.5 KiB
JSON
123 lines
3.5 KiB
JSON
{
|
|
"_args": [
|
|
[
|
|
"tiny-invariant@1.3.1",
|
|
"/home/zhiyuanliu/gitlink/forgeplus-react"
|
|
]
|
|
],
|
|
"_from": "tiny-invariant@1.3.1",
|
|
"_id": "tiny-invariant@1.3.1",
|
|
"_inBundle": false,
|
|
"_integrity": "sha512-AD5ih2NlSssTCwsMznbvwMZpJ1cbhkGd2uueNxzv2jDlEeZdU04JQfRnggJQ8DrcVBGjAsCKwFBbDlVNtEMlzw==",
|
|
"_location": "/tiny-invariant",
|
|
"_phantomChildren": {},
|
|
"_requested": {
|
|
"type": "version",
|
|
"registry": true,
|
|
"raw": "tiny-invariant@1.3.1",
|
|
"name": "tiny-invariant",
|
|
"escapedName": "tiny-invariant",
|
|
"rawSpec": "1.3.1",
|
|
"saveSpec": null,
|
|
"fetchSpec": "1.3.1"
|
|
},
|
|
"_requiredBy": [
|
|
"/css-box-model",
|
|
"/history",
|
|
"/react-beautiful-dnd"
|
|
],
|
|
"_resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.1.tgz",
|
|
"_spec": "1.3.1",
|
|
"_where": "/home/zhiyuanliu/gitlink/forgeplus-react",
|
|
"author": {
|
|
"name": "Alex Reardon",
|
|
"email": "alexreardon@gmail.com"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/alexreardon/tiny-invariant/issues"
|
|
},
|
|
"description": "A tiny invariant function",
|
|
"devDependencies": {
|
|
"@rollup/plugin-replace": "^4.0.0",
|
|
"@rollup/plugin-typescript": "^8.5.0",
|
|
"@size-limit/preset-small-lib": "^8.1.0",
|
|
"@types/jest": "^29.0.3",
|
|
"@types/rollup": "^0.54.0",
|
|
"expect-type": "^0.14.2",
|
|
"jest": "^29.0.3",
|
|
"prettier": "^2.7.1",
|
|
"rimraf": "^3.0.2",
|
|
"rollup": "^2.79.1",
|
|
"rollup-plugin-terser": "^7.0.2",
|
|
"size-limit": "^8.1.0",
|
|
"ts-jest": "^29.0.2",
|
|
"tslib": "^2.4.0",
|
|
"typescript": "^4.8.4"
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/esm/tiny-invariant.js",
|
|
"default": {
|
|
"types": "./dist/tiny-invariant.d.ts",
|
|
"default": "./dist/tiny-invariant.cjs.js"
|
|
}
|
|
}
|
|
},
|
|
"files": [
|
|
"/dist",
|
|
"/src"
|
|
],
|
|
"homepage": "https://github.com/alexreardon/tiny-invariant#readme",
|
|
"keywords": [
|
|
"invariant",
|
|
"error",
|
|
"assert",
|
|
"asserts"
|
|
],
|
|
"license": "MIT",
|
|
"main": "dist/tiny-invariant.cjs.js",
|
|
"module": "dist/tiny-invariant.esm.js",
|
|
"name": "tiny-invariant",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/alexreardon/tiny-invariant.git"
|
|
},
|
|
"scripts": {
|
|
"build": "yarn build:clean && yarn build:dist && yarn build:typescript && yarn build:typescript:esm",
|
|
"build:clean": "rimraf dist",
|
|
"build:dist": "yarn rollup --config rollup.config.js",
|
|
"build:flow": "cp src/tiny-invariant.js.flow dist/tiny-invariant.cjs.js.flow",
|
|
"build:typescript": "tsc ./src/tiny-invariant.ts --emitDeclarationOnly --declaration --outDir ./dist",
|
|
"build:typescript:esm": "tsc ./src/tiny-invariant.ts --emitDeclarationOnly --declaration --outDir ./dist/esm",
|
|
"prepublishOnly": "yarn build",
|
|
"prettier:check": "yarn prettier --write src/** test/**",
|
|
"prettier:write": "yarn prettier --debug-check src/** test/**",
|
|
"test": "yarn jest",
|
|
"test:size": "yarn build && yarn size-limit",
|
|
"typescript:check": "yarn tsc --noEmit src/*.ts test/*.ts",
|
|
"validate": "yarn prettier:check && yarn typescript:check"
|
|
},
|
|
"sideEffects": false,
|
|
"size-limit": [
|
|
{
|
|
"path": "dist/tiny-invariant.min.js",
|
|
"limit": "217B"
|
|
},
|
|
{
|
|
"path": "dist/tiny-invariant.js",
|
|
"limit": "267B"
|
|
},
|
|
{
|
|
"path": "dist/tiny-invariant.cjs.js",
|
|
"limit": "171B"
|
|
},
|
|
{
|
|
"path": "dist/tiny-invariant.esm.js",
|
|
"import": "foo",
|
|
"limit": "112B"
|
|
}
|
|
],
|
|
"types": "dist/tiny-invariant.d.ts",
|
|
"version": "1.3.1"
|
|
}
|