← All tasks
javascriptmozilla/source-map #212Not a task: already works

Include dist in package.json files

envgap__mozilla__source-map-212

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
92fbfc86a9d5de98c1e66b0fc8aa8bc19cac2648
Manifest
package.json
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

mozilla/source-map #212 · read the original issue
I'm working on a [library](https://github.com/mason-lang/esast) that requires source-map. I want this library to work both in node.js and in the browser. This means I want the same code to work with npm and with bower.

For npm, the package.json includes this code:

```
"files": [
    "source-map.js",
    "lib/"
]
```

So when I run `npm install mozilla/source-map`, I get `lib` but not `dist`.

For bower, I can't use `lib` because that uses CommonJS-style modules and I want to use AMD. So I have to use `dist`.

The problem would be solved if `dist` were included in the package.json `files` so that I could use the same import statement (to `source-map/dist/source-map.min.js`) on the web and in node.
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]