diff --git a/packages/pinia/index.cjs b/packages/pinia/index.cjs index 9fc1f5c..c436f57 100644 --- a/packages/pinia/index.cjs +++ b/packages/pinia/index.cjs @@ -1,7 +1,7 @@ 'use strict' if (process.env.NODE_ENV === 'production') { - module.exports = require('./dist/pinia.prod.cjs') + module.exports = require('./dist/pinia-core.prod.cjs') } else { - module.exports = require('./dist/pinia.cjs') + module.exports = require('./dist/pinia-core.cjs') } diff --git a/packages/pinia/index.js b/packages/pinia/index.js index 9fc1f5c..c436f57 100644 --- a/packages/pinia/index.js +++ b/packages/pinia/index.js @@ -1,7 +1,7 @@ 'use strict' if (process.env.NODE_ENV === 'production') { - module.exports = require('./dist/pinia.prod.cjs') + module.exports = require('./dist/pinia-core.prod.cjs') } else { - module.exports = require('./dist/pinia.cjs') + module.exports = require('./dist/pinia-core.cjs') } diff --git a/packages/pinia/package.json b/packages/pinia/package.json index 85386bf..a2c4172 100644 --- a/packages/pinia/package.json +++ b/packages/pinia/package.json @@ -1,28 +1,28 @@ { - "name": "pinia", + "name": "pinia-core", "version": "2.1.7", "description": "Intuitive, type safe and flexible Store for Vue", "main": "index.js", - "module": "dist/pinia.mjs", - "unpkg": "dist/pinia.iife.js", - "jsdelivr": "dist/pinia.iife.js", - "types": "dist/pinia.d.ts", + "module": "dist/pinia-core.mjs", + "unpkg": "dist/pinia-core.iife.js", + "jsdelivr": "dist/pinia-core.iife.js", + "types": "dist/pinia-core.d.ts", "exports": { ".": { - "types": "./dist/pinia.d.ts", + "types": "./dist/pinia-core.d.ts", "node": { "import": { - "production": "./dist/pinia.prod.cjs", - "development": "./dist/pinia.mjs", - "default": "./dist/pinia.mjs" + "production": "./dist/pinia-core.prod.cjs", + "development": "./dist/pinia-core.mjs", + "default": "./dist/pinia-core.mjs" }, "require": { - "production": "./dist/pinia.prod.cjs", - "development": "./dist/pinia.cjs", + "production": "./dist/pinia-core.prod.cjs", + "development": "./dist/pinia-core.cjs", "default": "./index.js" } }, - "import": "./dist/pinia.mjs", + "import": "./dist/pinia-core.mjs", "require": "./index.js" }, "./package.json": "./package.json", @@ -45,7 +45,7 @@ "dist/*.js", "dist/*.mjs", "dist/*.cjs", - "dist/pinia.d.ts", + "dist/pinia-core.d.ts", "index.js", "index.cjs", "LICENSE", diff --git a/rollup.config.mjs b/rollup.config.mjs index 4a6f079..5c81bc2 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -63,7 +63,7 @@ const outputConfigs = { format: `iife`, }, browser: { - file: 'dist/pinia.esm-browser.js', + file: 'dist/pinia-core.esm-browser.js', format: `es`, }, }