@zuzjs/ui 0.3.5 → 0.3.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@zuzjs/ui",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
package/jest.config.js DELETED
@@ -1,7 +0,0 @@
1
- module.exports = {
2
- testMatch: ['**/+(*.)+(spec|test).+(ts|js)?(x)'],
3
- moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
4
- transform: {
5
- '^.+\\.tsx?$': 'ts-jest'
6
- }
7
- };
package/rollup.config.js DELETED
@@ -1,51 +0,0 @@
1
- import typescript from 'rollup-plugin-typescript2';
2
- import commonjs from '@rollup/plugin-commonjs';
3
- import scss from "rollup-plugin-scss";
4
- import postcss from 'postcss'
5
- import livereload from 'rollup-plugin-livereload'
6
- import { uglify } from 'rollup-plugin-uglify';
7
-
8
- const isWatching = process && process.argv.includes('-w') || process.argv.includes('--watch')
9
- const plugins = [
10
- typescript(),
11
- commonjs(),
12
- scss({
13
- processor: () => postcss(),
14
- fileName: 'styles.css',
15
- failOnError: true
16
- }),
17
- !isWatching && uglify()
18
- // livereload()
19
- ]
20
- const externals = [
21
- "react","react-children-utilities","js-cookie","axios","nanoid","hashids","react/jsx-runtime","prop-types"
22
- ]
23
-
24
- export default [
25
- {
26
- input: ["src/ui.tsx"],
27
- output: [
28
- {
29
- dir: "dist",
30
- entryFileNames: "[name].js",
31
- format: "es",
32
- exports: "named",
33
- }
34
- ],
35
- plugins: plugins,
36
- externals: externals
37
- },
38
- {
39
- input: ["src/hooks.tsx"],
40
- output: [
41
- {
42
- dir: "dist",
43
- entryFileNames: "[name].js",
44
- format: "es",
45
- exports: "named",
46
- }
47
- ],
48
- plugins: plugins,
49
- externals: externals
50
- }
51
- ]
package/tsconfig.json DELETED
@@ -1,21 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es2017",
4
- "jsx": "react-jsx",
5
- "allowJs": true,
6
- "esModuleInterop": true,
7
- "allowSyntheticDefaultImports": true,
8
- "moduleResolution":"node",
9
- "module": "ESNext",
10
- },
11
- "files": [],
12
- "include": [],
13
- "references": [
14
- {
15
- "path": "./tsconfig.lib.json"
16
- },
17
- {
18
- "path": "./tsconfig.spec.json"
19
- }
20
- ]
21
- }
package/tsconfig.lib.json DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "./dist/out-tsc",
5
- "types": ["node","vite/client"]
6
- },
7
- "exclude": ["**/*.spec.ts", "**/*.spec.tsx", "node_modules"],
8
- "include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"]
9
- }
@@ -1,21 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "./dist/out-tsc",
5
- "module": "commonjs",
6
- "types": [
7
- "jest",
8
- "node"
9
- ]
10
- },
11
- "include": [
12
- "**/*.spec.ts",
13
- "**/*.spec.tsx",
14
- "**/*.spec.js",
15
- "**/*.spec.jsx",
16
- "**/*.d.ts"
17
- ],
18
- "exclude": [
19
- "node_modules"
20
- ]
21
- }