forstok-ui-lib 1.0.4 → 1.0.6

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.
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "forstok-ui-lib",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Forstok UI Components Library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {
9
9
  "test": "echo \"Error: no test specified\" && exit 1",
10
- "rollup": "rollup -c --bundleConfigAsCjs"
10
+ "build": "rollup -c --bundleConfigAsCjs"
11
11
  },
12
12
  "repository": {
13
13
  "type": "git",
package/rollup.config.js CHANGED
@@ -6,8 +6,15 @@ import postcss from 'rollup-plugin-postcss';
6
6
  import dts from 'rollup-plugin-dts';
7
7
  import typescript from "@rollup/plugin-typescript";
8
8
 
9
+ const createStyledComponentsTransformer = require('typescript-plugin-styled-components').default;
9
10
  const packageJson = require('./package.json');
10
11
 
12
+ const styledComponentsTransformer = createStyledComponentsTransformer({
13
+ namespace: 'fs-',
14
+ displayName: false,
15
+ fileName: false
16
+ });
17
+
11
18
  export default [
12
19
  {
13
20
  input: 'src/index.ts',
@@ -29,7 +36,14 @@ export default [
29
36
  PeerDepsExternalPlugin(),
30
37
  resolve(),
31
38
  commonjs(),
32
- typescript({ tsconfig: "./tsconfig.json" }),
39
+ typescript({
40
+ tsconfig: "./tsconfig.json",
41
+ transformers: [
42
+ () => ({
43
+ before: [styledComponentsTransformer],
44
+ }),
45
+ ],
46
+ }),
33
47
  terser(),
34
48
  postcss({
35
49
  extract: true,
@@ -46,9 +60,7 @@ export default [
46
60
  format: 'esm'
47
61
  },
48
62
  ],
49
- plugins: [
50
- dts.default()
51
- ],
63
+ plugins: [dts.default()],
52
64
  external: [/\.css/],
53
65
  }
54
66
  ];
@@ -1,2 +1,3 @@
1
1
  export { default as TextComponent } from './text/text';
2
- export { default as LinkComponent } from './link/link';
2
+ export { default as LinkComponent } from './link/link';
3
+ export { default as InputComponent } from './input/input';
package/tsconfig.json CHANGED
@@ -22,5 +22,9 @@
22
22
  },
23
23
  "include": [
24
24
  "src"
25
- ]
25
+ ],
26
+ "exclude": [
27
+ "node_modules",
28
+ "dist"
29
+ ]
26
30
  }