Skip to content

Commit bcd3398

Browse files
committed
refactor: use type module
1 parent 7ad821b commit bcd3398

File tree

3 files changed

+6
-13
lines changed

3 files changed

+6
-13
lines changed

packages/pinia/index.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/pinia/package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"name": "pinia",
33
"version": "2.3.1",
44
"description": "Intuitive, type safe and flexible Store for Vue",
5-
"main": "index.js",
5+
"type": "module",
6+
"main": "index.cjs",
67
"module": "dist/pinia.mjs",
78
"unpkg": "dist/pinia.iife.js",
89
"jsdelivr": "dist/pinia.iife.js",
@@ -19,14 +20,13 @@
1920
"require": {
2021
"production": "./dist/pinia.prod.cjs",
2122
"development": "./dist/pinia.cjs",
22-
"default": "./index.js"
23+
"default": "./index.cjs"
2324
}
2425
},
2526
"import": "./dist/pinia.mjs",
26-
"require": "./index.js"
27+
"require": "./index.cjs"
2728
},
28-
"./package.json": "./package.json",
29-
"./dist/*": "./dist/*"
29+
"./package.json": "./package.json"
3030
},
3131
"sideEffects": false,
3232
"author": {
@@ -46,7 +46,6 @@
4646
"dist/*.mjs",
4747
"dist/*.cjs",
4848
"dist/pinia.d.ts",
49-
"index.js",
5049
"index.cjs",
5150
"LICENSE",
5251
"README.md"

packages/playground/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@pinia/playground",
33
"version": "0.0.0",
4+
"type": "module",
45
"private": true,
56
"scripts": {
67
"play": "vite",

0 commit comments

Comments
 (0)