lucos_search_component 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import '../index.js';
1
+ import '../dist/index.js';
@@ -7,13 +7,5 @@ export default {
7
7
  filename: 'built.js',
8
8
  path: new URL('.', import.meta.url).pathname,
9
9
  },
10
- module: {
11
- rules: [
12
- {
13
- test: /\.css$/i,
14
- use: ["css-loader"],
15
- },
16
- ],
17
- },
18
10
  mode: 'development',
19
11
  };
package/index.js CHANGED
@@ -93,7 +93,7 @@ class LucosSearchComponent extends HTMLSpanElement {
93
93
  // (If `style-loader` is being used, the tom-select stylesheet will be handled by that)
94
94
  if (tomSelectStylesheet) {
95
95
  const tomStyle = document.createElement('style');
96
- tomStyle.textContent = tomSelectStylesheet[0][1];
96
+ tomStyle.textContent = tomSelectStylesheet;
97
97
  shadow.appendChild(tomStyle);
98
98
  }
99
99
 
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "lucos_search_component",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "Web Component for searching lucOS data",
5
5
  "type": "module",
6
- "main": "index.js",
6
+ "main": "dist/index.js",
7
7
  "scripts": {
8
8
  "test": "echo \"Error: no test specified\" && exit 1",
9
- "example": "source .env && KEY_LUCOS_ARACHNE=$KEY_LUCOS_ARACHNE envsubst < example/index.html > example/built.html && webpack -c example/webpack.config.js && open example/built.html"
9
+ "example": "source .env && KEY_LUCOS_ARACHNE=$KEY_LUCOS_ARACHNE envsubst < example/index.html > example/built.html && npm run build && webpack -c example/webpack.config.js && open example/built.html",
10
+ "build": "rollup -c"
10
11
  },
11
12
  "repository": {
12
13
  "type": "git",
@@ -22,10 +23,10 @@
22
23
  },
23
24
  "homepage": "https://github.com/lucas42/lucos_search_component#readme",
24
25
  "devDependencies": {
25
- "webpack-cli": "^6.0.1"
26
- },
27
- "dependencies": {
26
+ "@rollup/plugin-node-resolve": "^16.0.1",
27
+ "rollup": "^4.52.4",
28
+ "rollup-plugin-import-css": "^4.0.2",
28
29
  "tom-select": "^2.4.3",
29
- "css-loader": "^7.1.2"
30
+ "webpack-cli": "^6.0.1"
30
31
  }
31
32
  }
@@ -0,0 +1,14 @@
1
+ import resolve from '@rollup/plugin-node-resolve';
2
+ import css from "rollup-plugin-import-css";
3
+
4
+ export default {
5
+ input: 'index.js',
6
+ output: {
7
+ file: 'dist/index.js',
8
+ format: 'esm'
9
+ },
10
+ plugins: [
11
+ resolve(),
12
+ css(),
13
+ ],
14
+ };