diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 21927faa..00000000 --- a/.npmignore +++ /dev/null @@ -1,16 +0,0 @@ -src/ -e2e/ -*.test.* -tsconfig.json -.eslintrc -.eslintrc.yml -.prettierignore -.prettierrc.yml -.codecov.yml -.github/ -__snapshots__/ -project-fixtures/ -coverage/ -e2e_coverage/ -*.tsbuildinfo -tools/ diff --git a/package-lock.json b/package-lock.json index 47d7759f..7a79aa46 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,7 +7,6 @@ "": { "name": "ts-graphql-plugin", "version": "3.0.2", - "hasInstallScript": true, "license": "MIT", "dependencies": { "graphql-language-service": "^5.2.0" @@ -35,7 +34,6 @@ "msw": "2.2.3", "node-fetch": "3.3.2", "npm-run-all2": "6.1.2", - "pinst": "3.0.0", "prettier": "^3.2.5", "pretty-quick": "4.0.0", "rimraf": "5.0.5", @@ -7148,19 +7146,6 @@ "node": ">=0.10" } }, - "node_modules/pinst": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pinst/-/pinst-3.0.0.tgz", - "integrity": "sha512-cengSmBxtCyaJqtRSvJorIIZXMXg+lJ3sIljGmtBGUVonMnMsVJbnzl6jGN1HkOWwxNuJynCJ2hXxxqCQrFDdw==", - "dev": true, - "license": "MIT", - "bin": { - "pinst": "bin.js" - }, - "engines": { - "node": ">=12.0.0" - } - }, "node_modules/pirates": { "version": "4.0.4", "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.4.tgz", diff --git a/package.json b/package.json index bbcead92..b15825b8 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,15 @@ "tsgql": "lib/cli/cli.js", "ts-graphql-plugin": "lib/cli/cli.js" }, - "typings": "lib/index.d.ts", + "types": "lib/index.d.ts", + "files": [ + "webpack.js", + "lib/**/*.js", + "lib/**/*.d.ts", + "!lib/**/*.test.*" + ], "scripts": { + "prepare": "husky install", "clean": "rimraf -g lib \"e2e/*.log\" \"*.tsbuildinfo\"", "build": "run-s build:ts build:doc", "build:ts": "tsc -p .", @@ -30,10 +37,7 @@ "doc:toc": "ts-node -P tools/tsconfig.json tools/add-toc.ts", "watch:compile": "tsc --watch -p .", "watch:jest": "jest --watch", - "watch": "npm run run clean && run-p watch:*", - "postinstall": "husky install", - "prepublishOnly": "pinst --disable", - "postpublish": "pinst --enable" + "watch": "npm run run clean && run-p watch:*" }, "author": "Quramy", "license": "MIT", @@ -63,7 +67,6 @@ "msw": "2.2.3", "node-fetch": "3.3.2", "npm-run-all2": "6.1.2", - "pinst": "3.0.0", "prettier": "^3.2.5", "pretty-quick": "4.0.0", "rimraf": "5.0.5",