insomnia/packages/insomnia-components/package.json

79 lines
2.4 KiB
JSON
Raw Normal View History

2020-04-26 20:33:39 +00:00
{
"name": "insomnia-components",
"version": "3.1.0-beta.4",
"author": "Kong <office@konghq.com>",
2020-04-26 20:33:39 +00:00
"description": "Insomnia UI component library",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/Kong/insomnia.git",
"directory": "packages/insomnia-components"
},
"bugs": {
"url": "https://github.com/Kong/insomnia/issues"
},
"main": "./dist/commonjs/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"require": "./dist/commonjs/index.js",
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
2020-04-26 20:33:39 +00:00
"scripts": {
Fixes clean scripts (#3400) * removes (unused and unwanted) husky scripts might as well, it's only taking up space for nothing in our node_modules * adds `lerna run clean` to main clean script we didn't have `clean` scripts in the packages before, but now that we do, it makes sense to.... hahah... _use them_. Note that it's important that we run the package scripts first, because otherwise after the rimraf (which is now at the end) there's no `lerna` left to call. * adds missing clean script to insomnia-components although it looks like there are other changes at first glance, there shouldn't be any behavioral differences now except the fact that build will always generate SVGs (which, was an oversight/bug that it wasn't before). We need this to occur so that when we clean it removes the things that were built, and when we build it replaces those same things. * adds a postclean script to insomnia-app like every other package I'll be honest, I'm not entirely sure what the reason is for having `postclean` scripts in every package with (mostly) `rimraf dist` (i.e. instead of just including that in the main clean script at the end), but that's clearly the convention - so for now I'm just following it * removes references to old build artifact location well, except for the .gitignore. I guess I could remove it from the .gitignore, commit it, commit deleting it, which would clear it from everyone's projects... but I'll just leave it there for a bit in the .gitignore. hopefully people either start fresh or run `clean` from the root every once in a while, which will clean this up. After a few weeks or months we can remove these two references (in the package.json.clean and .gitignore) altogether if we feel like it. * removes unused reference in config to build artifact I searched high and low for every place I could find that consumes this file and none of them seem to use this field anyway. And even if they did, it's wrong. In fact, it's been wrong for a while I'd guess because (relative to the root, if that's what it was intended to mean). As far as I can tell this was added https://github.com/Kong/insomnia/commit/c6a7c4d68272b3c4f3d78d4dc9031ae8e49b3f7a#diff-6918d2464ad7fb0f3e985d8587ce0c4218eeba6c6dea60c58642251f4db99ecb So I even checked out that commit and looked at all usages of that file at that time and it was, there too, unused (so far as I can tell). Appears to be a case of wishful thinking that it'd be useful for something, not sure.
2021-05-19 13:56:10 +00:00
"prebuild": "npm run convert-svg",
"build:source": "vite build",
"build:types": "tsc --build tsconfig.build.json",
"build": "concurrently --names source,types \"npm run build:source\" \"npm run build:types\"",
2022-03-01 12:52:10 +00:00
"clean": "rimraf dist && npm run clean:svg",
Fixes clean scripts (#3400) * removes (unused and unwanted) husky scripts might as well, it's only taking up space for nothing in our node_modules * adds `lerna run clean` to main clean script we didn't have `clean` scripts in the packages before, but now that we do, it makes sense to.... hahah... _use them_. Note that it's important that we run the package scripts first, because otherwise after the rimraf (which is now at the end) there's no `lerna` left to call. * adds missing clean script to insomnia-components although it looks like there are other changes at first glance, there shouldn't be any behavioral differences now except the fact that build will always generate SVGs (which, was an oversight/bug that it wasn't before). We need this to occur so that when we clean it removes the things that were built, and when we build it replaces those same things. * adds a postclean script to insomnia-app like every other package I'll be honest, I'm not entirely sure what the reason is for having `postclean` scripts in every package with (mostly) `rimraf dist` (i.e. instead of just including that in the main clean script at the end), but that's clearly the convention - so for now I'm just following it * removes references to old build artifact location well, except for the .gitignore. I guess I could remove it from the .gitignore, commit it, commit deleting it, which would clear it from everyone's projects... but I'll just leave it there for a bit in the .gitignore. hopefully people either start fresh or run `clean` from the root every once in a while, which will clean this up. After a few weeks or months we can remove these two references (in the package.json.clean and .gitignore) altogether if we feel like it. * removes unused reference in config to build artifact I searched high and low for every place I could find that consumes this file and none of them seem to use this field anyway. And even if they did, it's wrong. In fact, it's been wrong for a while I'd guess because (relative to the root, if that's what it was intended to mean). As far as I can tell this was added https://github.com/Kong/insomnia/commit/c6a7c4d68272b3c4f3d78d4dc9031ae8e49b3f7a#diff-6918d2464ad7fb0f3e985d8587ce0c4218eeba6c6dea60c58642251f4db99ecb So I even checked out that commit and looked at all usages of that file at that time and it was, there too, unused (so far as I can tell). Appears to be a case of wishful thinking that it'd be useful for something, not sure.
2021-05-19 13:56:10 +00:00
"clean:svg": "rimraf src/assets/svgr",
"clean:svg:index": "rimraf src/assets/svgr/index.tsx",
"convert-svg": "npm run clean:svg && svgr --config-file svgr.config.js --out-dir src/assets/svgr src/assets && npm run clean:svg:index",
"jest:watch": "jest --watch",
"prepare": "npm run convert-svg && npm run build",
2021-12-10 23:10:20 +00:00
"lint": "eslint . --ext .js,.ts,.tsx --cache",
"lint:fix": "npm run lint -- --fix",
"test": "jest",
"watch": "cross-env ESBUILD_WATCH=true esr esbuild.ts"
},
2020-04-26 20:33:39 +00:00
"devDependencies": {
"@jest/globals": "^28.1.0",
"@svgr/cli": "^5.5.0",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^12.1.5",
2021-07-22 14:56:14 +00:00
"@types/ramda": "^0.27.44",
"@types/react": "^17.0.39",
"@types/react-dom": "^17.0.11",
"concurrently": "^7.0.0",
"cross-env": "^7.0.3",
"esbuild": "^0.14.27",
"esbuild-runner": "^2.2.1",
"jest": "^28.1.0",
"jest-environment-jsdom": "^28.0.2",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-use": "^17.2.4",
"styled-components": "^5.3.3",
2022-03-08 23:05:21 +00:00
"type-fest": "^2.12.0",
"typescript": "^4.5.5",
"vite": "^2.9.1"
2020-04-26 20:33:39 +00:00
},
"dependencies": {
"@types/styled-components": "^5.1.23",
"class-autobind-decorator": "^3.0.1",
"classnames": "^2.3.1",
"framer-motion": "4.1.17",
"fuzzysort": "^1.2.1",
2021-07-22 14:56:14 +00:00
"ramda": "^0.27.1",
"react-switch": "^6.0.0"
2020-04-26 20:33:39 +00:00
},
"peerDependencies": {
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-use": "^17.2.4",
"styled-components": "^5.3.3"
}
2020-04-26 20:33:39 +00:00
}