From fd0f5ef115f9baf44fdd0960acf03f501b373613 Mon Sep 17 00:00:00 2001 From: "P. Christopher Bowers" Date: Wed, 30 Mar 2022 14:13:03 -0400 Subject: [PATCH] perf: :zap: Shrunk package size --- .npmignore | 1 + package.json | 28 ++++++++++++++++++---------- src/test.ts | 5 ----- 3 files changed, 19 insertions(+), 15 deletions(-) delete mode 100644 src/test.ts diff --git a/.npmignore b/.npmignore index 2a13eaa..99b5c01 100644 --- a/.npmignore +++ b/.npmignore @@ -9,3 +9,4 @@ .nyc_output .babelrc tsconfig.json +docs diff --git a/package.json b/package.json index b92ad4a..e569d00 100644 --- a/package.json +++ b/package.json @@ -1,14 +1,23 @@ { "name": "sanity-plugin-tags", - "version": "1.1.6", + "version": "1.1.7", "description": "A multi-tag input for sanity studio", "main": "lib/index.js", "scripts": { "lint": "eslint .", "build": "sanipack build", "watch": "sanipack build --watch", - "prepublishOnly": "sanipack build && sanipack verify" + "verify": "sanipack build && sanipack verify", + "prepublishOnly": "npm run verify" }, + "files": [ + "/lib", + "/src", + "package.json", + "README.md", + "LICENSE", + "sanity.json" + ], "repository": { "type": "git", "url": "https://github.com/pcbowers/sanity-plugin-tags.git" @@ -20,9 +29,9 @@ "author": "P Christopher Bowers ", "license": "MIT", "dependencies": { - "@sanity/ui": "^0.37.5", "@reach/auto-id": "^0.16.0", - "react-select": "^5.2.2" + "react-select": "^5.2.2", + "@sanity/ui": "^0.37.5" }, "devDependencies": { "eslint": "^7.32.0", @@ -30,16 +39,15 @@ "eslint-config-sanity": "^5.1.0", "eslint-plugin-react": "^7.29.4", "prettier": "^2.6.1", - "react-dom": "^17.0", "sanipack": "^2.1.0", "typescript": "^4.6.3" }, "peerDependencies": { - "@sanity/base": "^2.29.2", - "@sanity/core": "^2.28.1", - "@sanity/form-builder": "^2.29.2", - "react": "^17.0.0", - "react-dom": "^17.0" + "@sanity/base": "^2.0.9", + "@sanity/components": "^2.0.9", + "@sanity/form-builder": "^2.0.9", + "@sanity/core": "^2.0.9", + "react": "^16 || ^17" }, "bugs": { "url": "https://github.com/pcbowers/sanity-plugin-tags/issues" diff --git a/src/test.ts b/src/test.ts deleted file mode 100644 index c2d5934..0000000 --- a/src/test.ts +++ /dev/null @@ -1,5 +0,0 @@ -const options = {} - -// See if multi or not - -// See if reference.