insomnia/package.json
Dimitri Mitropoulos a060562697
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 c6a7c4d682 (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 09:56:10 -04:00

80 lines
3.4 KiB
JSON

{
"name": "insomnia",
"private": true,
"version": "1.0.0",
"author": "Kong <office@konghq.com>",
"description": "Insomnia is a cross-platform REST client, built on top of Electron.",
"license": "MIT",
"repository": "https://github.com/kong/insomnia",
"bugs": {
"url": "https://github.com/kong/insomnia/issues"
},
"homepage": "https://github.com/kong/insomnia#readme",
"scripts": {
"build": "lerna run build --parallel",
"lint": "lerna run lint --parallel --stream --no-bail",
"lint:fix": "lerna run lint:fix --parallel --stream --no-bail",
"bootstrap": "npm install && lerna bootstrap && lerna run --stream bootstrap",
"version": "lerna version --exact --preid beta --force-publish",
"version:dry": "npm run version -- --no-git-tag-version",
"publish": "lerna publish from-git --pre-dist-tag beta",
"clean": "lerna run clean --parallel --stream && lerna clean --yes && rimraf node_modules",
"test": "lerna run --stream --parallel test",
"test:pre-release": "npm run test --prefix packages/insomnia-app",
"inso-start": "npm start --prefix packages/insomnia-inso",
"app-start": "npm start --prefix packages/insomnia-app",
"app-build": "npm run build --prefix packages/insomnia-app",
"app-package": "npm run package --prefix packages/insomnia-app",
"app-release": "npm run release --prefix packages/insomnia-app",
"storybook-start": "npm run storybook --prefix packages/insomnia-components",
"storybook-legacy-start": "npm run storybook --prefix packages/insomnia-app",
"preinstall": "node ./scripts/check-version.js",
"app-build:smoke": "cross-env SMOKE_TEST=true npm run app-build",
"app-package:smoke": "cross-env SMOKE_TEST=true npm run app-package",
"test:smoke:build": "npm run test:build --prefix packages/insomnia-smoke-test",
"test:smoke:package": "npm run test:package --prefix packages/insomnia-smoke-test",
"test:smoke:cli": "npm run test:cli --prefix packages/insomnia-smoke-test"
},
"devDependencies": {
"@babel/cli": "^7.10.5",
"@babel/plugin-proposal-class-properties": "^7.7.4",
"@babel/plugin-proposal-decorators": "^7.4.0",
"@babel/preset-env": "^7.4.3",
"@babel/preset-flow": "^7.9.0",
"@babel/preset-react": "^7.9.4",
"@jest/types": "^26.6.2",
"@types/chai": "^4.2.15",
"@types/eslint": "4.16.1",
"@types/jest": "^26.0.23",
"@types/node": "^14.14.32",
"@types/rimraf": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^4.16.1",
"@typescript-eslint/parser": "^4.16.1",
"babel-loader": "^8.0.5",
"babel-plugin-inline-react-svg": "^1.1.0",
"babel-plugin-styled-components": "^1.12.0",
"cross-env": "^7.0.2",
"eslint": "^7.2.0",
"eslint-config-semistandard": "^15.0.0",
"eslint-config-standard": "^14.1.1",
"eslint-plugin-filenames": "^1.2.0",
"eslint-plugin-flowtype": "^4.7.0",
"eslint-plugin-html": "^6.0.1",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-jest": "^21.15.1",
"eslint-plugin-jest-formatting": "^2.0.1",
"eslint-plugin-json": "^1.2.0",
"eslint-plugin-node": "^6.0.1",
"eslint-plugin-promise": "^3.7.0",
"eslint-plugin-react": "^7.19.0",
"eslint-plugin-react-hooks": "^4.0.4",
"eslint-plugin-standard": "^4.0.1",
"jest": "^26.6.3",
"lerna": "^3.22.0",
"rimraf": "^3.0.2",
"ts-jest": "^26.5.6",
"type-fest": "^1.0.2",
"typescript": "^4.2.3"
}
}