.
This commit is contained in:
parent
889148eb42
commit
9dd2c4025b
2 changed files with 12 additions and 9 deletions
|
|
@ -1,9 +1,8 @@
|
|||
{
|
||||
"name": "p-comuns",
|
||||
"version": "0.254.0",
|
||||
"version": "0.255.0",
|
||||
"description": "",
|
||||
"main": "dist/index.cjs",
|
||||
"module": "dist/index.mjs",
|
||||
"types": "dist/index.d.ts",
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -10,13 +10,17 @@ const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf8'))
|
|||
// Agora vamos de Day.js “turbinado”: CJS + ESM + IIFE
|
||||
const nextPkg = {
|
||||
...pkg,
|
||||
main: 'dist/index.cjs', // Node / SSR (require)
|
||||
module: 'dist/index.mjs', // Bundlers ESM
|
||||
types: 'dist/index.d.ts', // Tipos
|
||||
browser: 'dist/index.global.js', // Browser sem bundler (<script>)
|
||||
unpkg: 'dist/index.global.js',
|
||||
jsdelivr: 'dist/index.global.js',
|
||||
// Remove campos que atrapalham o resolver:
|
||||
|
||||
|
||||
"main": "dist/index.cjs",
|
||||
"types": "dist/index.d.ts",
|
||||
"browser": "dist/index.global.js",
|
||||
"unpkg": "dist/index.global.js",
|
||||
"jsdelivr": "dist/index.global.js",
|
||||
"sideEffects": false,
|
||||
|
||||
|
||||
module: undefined,
|
||||
type: undefined as unknown as string,
|
||||
exports: undefined as unknown as Record<string, unknown>,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue