@cartbot/plate-search 3.0.13 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cartbot/plate-search",
3
- "version": "3.0.13",
3
+ "version": "3.1.1",
4
4
  "author": "Partbot",
5
5
  "url": "https://plate-search.partbot.io",
6
6
  "description": "Compatible with [Partbot](https://use.partbot.io) connected ecommerce stores and synced products.",
@@ -8,6 +8,7 @@
8
8
  "files": [
9
9
  "dist/js",
10
10
  "dist/css",
11
+ "dist/index.d.ts",
11
12
  "build/dist/js",
12
13
  "build/dist/css",
13
14
  "README.md"
@@ -27,13 +28,13 @@
27
28
  },
28
29
  "scripts": {
29
30
  "dev": "vite",
30
- "build": "pnpm run build:lib && pnpm run build:site && pnpm run copy:legacy && pnpm run copy:assets",
31
- "build:lib": "vite build",
31
+ "build": "npm run build:lib && npm run build:site && npm run copy:legacy && npm run copy:assets",
32
+ "build:lib": "vite build && vite build -c vite.umd.config.mjs",
32
33
  "build:site": "vite build -c vite.site.config.mjs",
33
34
  "copy:legacy": "rm -rf build/dist && mkdir -p build/dist/js && cp dist/js/plate-search.js build/dist/js/ && if [ -d dist/css ]; then mkdir -p build/dist/css && cp -R dist/css/* build/dist/css/; fi",
34
35
  "copy:assets": "cp public/*.svg public/*.png public/robots.txt dist/ 2>/dev/null || true && mkdir -p dist/fonts && cp -R public/fonts/* dist/fonts/",
35
36
  "preview": "vite preview",
36
- "publish": "npm publish --access public",
37
+ "release": "npm publish --access public",
37
38
  "test": "vitest",
38
39
  "serve:dist": "npx serve dist"
39
40
  },
@@ -75,11 +76,12 @@
75
76
  },
76
77
  "main": "dist/js/plate-search.js",
77
78
  "module": "dist/js/plate-search.es.js",
79
+ "types": "dist/index.d.ts",
78
80
  "exports": {
79
81
  ".": {
82
+ "types": "./dist/index.d.ts",
80
83
  "import": "./dist/js/plate-search.es.js",
81
84
  "require": "./dist/js/plate-search.js"
82
- },
83
- "./dist/css/plate-search.css": "./dist/css/plate-search.css"
85
+ }
84
86
  }
85
87
  }