Skip to content

Commit

Permalink
feat(index): build move cjs path to default
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTelanie committed Jan 1, 2020
1 parent 3c28660 commit c9ad582
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .rolluprc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = [
format: 'esm',
interop: false
}, {
dir: './build/cjs',
dir: './',
exports: 'named',
format: 'cjs',
interop: false
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ import {
cachedValueOf,
cachedFactory,
operatorCalc
} from "@js-basics/vector/build/cjs/operator";
} from "@js-basics/vector/operator";
```

### override valueOf in own class
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@js-basics/vector",
"version": "1.40.7",
"description": "A vector lib with support for (+ - * /) operator handling",
"main": "./build/cjs/index.js",
"main": "./index.js",
"module": "./build/esm/index.js",
"directories": {
"build": "build"
Expand Down
2 changes: 1 addition & 1 deletion src/adapter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
\$ `npm i @js-basics/vector`

```javascript
import "@js-basics/vector/build/cjs/adapter/playcanvas";
import "@js-basics/vector/adapter/playcanvas";
```

### load in editor of playcanvas
Expand Down

0 comments on commit c9ad582

Please sign in to comment.