Skip to content

Commit f9ccc98

Browse files
committed
chore: fix playgrounds paths
1 parent 9a1a2af commit f9ccc98

File tree

6 files changed

+7
-24
lines changed

6 files changed

+7
-24
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ build/*.css
106106
build/*.less
107107
build/*.scss
108108
build/**/*.js
109+
build/**/*.mjs
109110
build/**/*.ts
110111
build/*.map
111112
package/*.css

build/element/package.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

build/package.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,14 @@
44
"types": "atropos.d.ts",
55
"type": "module",
66
"exports": {
7-
".": "./esm/atropos.esm.js",
8-
"./esm": "./react/atropos.esm.js",
9-
"./esm/browser": "./react/atropos.esm.browser.js",
10-
"./esm/browser/min": "./react/atropos.esm.browser.min.js",
11-
"./react": "./react/atropos-react.esm.js",
7+
".": "./atropos.mjs",
8+
"./react": "./atropos-react.mjs",
129
"./atropos.js": "./atropos.js",
1310
"./atropos.min.js": "./atropos.min.js",
1411
"./atropos.css": "./atropos.css",
1512
"./atropos.min.css": "./atropos.min.css",
1613
"./atropos.less": "./atropos.less",
1714
"./atropos.scss": "./atropos.scss",
18-
"./element": "./element/atropos-element.esm.js"
15+
"./element": "./atropos-element.mjs"
1916
}
2017
}

build/react/package.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

playground/element/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// eslint-disable-next-line import/no-unresolved
2-
import AtroposComponent from '../../build/element';
1+
// eslint-disable-next-line
2+
import AtroposComponent from '../../build/atropos-element.mjs';
33

44
customElements.define('atropos-component', AtroposComponent);

playground/react/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import Atropos from '../../build/react';
2+
import Atropos from '../../build/atropos-react.mjs';
33

44
const App = () => {
55
return (

0 commit comments

Comments
 (0)