#Bun doesn't match npm behaviour

1 messages · Page 1 of 1 (latest)

inland geode
#

Bun doesn't publish all files, while npm does

#
>npm publish --dry-run

npm notice
npm notice package: @websimai/[email protected]
npm notice Tarball Contents
npm notice 1.1kB LICENSE
npm notice 65B README.md
npm notice 620B package.json
npm notice 26B src/index.ts
npm notice 180B src/types/index.ts
npm notice 996B src/types/project-asset.ts
npm notice 625B src/types/project-revision.ts
npm notice 873B src/types/project.ts
npm notice 327B src/types/screenshot.ts
npm notice 1.2kB src/types/site.ts
npm notice 244B src/types/user.ts
npm notice 79B src/utils/index.ts
npm notice Tarball Details
npm notice name: @websimai/core-api-types
npm notice version: 0.0.0
npm notice filename: websimai-core-api-types-0.0.0.tgz
npm notice package size: 2.6 kB
npm notice unpacked size: 6.3 kB
npm notice shasum: 245faca49ff3b60273c382670f49b8290d1ca30d
npm notice integrity: sha512-bqh0ME0K6SPpa[...]Cq8633vbSS6eQ==
npm notice total files: 12
npm notice
npm notice Publishing to https://registry.npmjs.org/ with tag latest and default access (dry-run)
+ @websimai/[email protected]
>bun run npm:publish --dry-run
$ bun publish --access public --dry-run
bun publish v1.3.1 (89fa0f34)

packed 0.62KB package.json
packed 1.1KB LICENSE
packed 65B README.md
packed 26B src/index.ts
packed 79B src/utils/index.ts

Total files: 5
Unpacked size: 1.88KB
Tag: latest
Access: public
Registry: https://registry.npmjs.org/

 + @websimai/[email protected] (dry-run)
#

package.json

{
  "name": "@websimai/core-api-types",
  "version": "0.0.0",
  "description": "Core Websim API type declarations",
  "author": "GameRoMan",
  "license": "MIT",
  "scripts": {
    "npm:publish": "bun publish --access public"
  },
  "files": [
    "src/**/*",
    "README.md",
    "LICENSE"
  ],
  "keywords": [
    "websim",
    "types",
    "typescript"
  ],
  "peerDependencies": {
    "typescript": "^5.9.3"
  },
  "main": "./src/index.ts",
  "module": "./src/index.ts",
  "types": "./src/index.ts",
  "exports": {
    ".": "./src/index.ts",
    "./package.json": "./package.json"
  }
}
#
>tree /f src

\SRC
│   index.ts
│
├───types
│       index.ts
│       project-asset.ts
│       project-revision.ts
│       project.ts
│       screenshot.ts
│       site.ts
│       user.ts
│
└───utils
        index.ts
#

i'v tried renaming the folder, moving it around, changing how i export from it, tried changing both package.json and tsconfig, but it just doesn't work and that's it

and it's the only/first time that it doesn't want to work for me

inland geode
#

I’ll see if I can make a detailed repro and will open a GitHub issue

inland geode
#

Bun doesn't match npm behaviour

inland geode
#

Alright, it seems to have fixed by itself

I'll open an issue if it happens again

abstract timber
#

what platform are you on? this might be a platform specific bug