Skip to content

Commit

Permalink
Rename the generated file to pinia-core
Browse files Browse the repository at this point in the history
  • Loading branch information
CrescentSine committed Dec 5, 2023
1 parent ad006aa commit ae1c2f5
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions packages/pinia/index.cjs
Original file line number Diff line number Diff line change
@@ -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')
}
4 changes: 2 additions & 2 deletions packages/pinia/index.js
Original file line number Diff line number Diff line change
@@ -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')
}
26 changes: 13 additions & 13 deletions packages/pinia/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -45,7 +45,7 @@
"dist/*.js",
"dist/*.mjs",
"dist/*.cjs",
"dist/pinia.d.ts",
"dist/pinia-core.d.ts",
"index.js",
"index.cjs",
"LICENSE",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const outputConfigs = {
format: `iife`,
},
browser: {
file: 'dist/pinia.esm-browser.js',
file: 'dist/pinia-core.esm-browser.js',
format: `es`,
},
}
Expand Down

0 comments on commit ae1c2f5

Please sign in to comment.