woby-tooltip 1.0.4 → 1.0.5

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/tsconfig.json CHANGED
@@ -1,60 +1,62 @@
1
- {
2
- "compilerOptions": {
3
- "allowJs": false,
4
- "allowSyntheticDefaultImports": true,
5
- "allowUnreachableCode": false,
6
- "allowUnusedLabels": false,
7
- "alwaysStrict": true,
8
- "declaration": true,
9
- "declarationDir": "./dist/types",
10
- "disableSizeLimit": true,
11
- "esModuleInterop": false,
12
- "forceConsistentCasingInFileNames": true,
13
- // "importsNotUsedAsValues": "error",
14
- "inlineSourceMap": false,
15
- "inlineSources": false,
16
- // "isolatedModules": true,
17
- "jsx": "react-jsx",
18
- "jsxImportSource": "woby",
19
- "lib": [
20
- "dom",
21
- "esnext",
22
- "WebWorker"
23
- ],
24
- "module": "esnext",
25
- "moduleResolution": "node",
26
- "newLine": "lf",
27
- "noEmitOnError": false,
28
- "noImplicitThis": true,
29
- "noPropertyAccessFromIndexSignature": false,
30
- "noUnusedLocals": false,
31
- "noUnusedParameters": false,
32
- "outDir": "dist",
33
- "pretty": true,
34
- "skipDefaultLibCheck": true,
35
- "skipLibCheck": true,
36
- "sourceMap": false,
37
- "strict": true,
38
- "strictBindCallApply": true,
39
- "strictFunctionTypes": true,
40
- "strictNullChecks": false,
41
- "target": "es2020",
42
- "useDefineForClassFields": false,
43
- "useUnknownInCatchVariables": true,
44
- "noImplicitAny": false,
45
- "noUncheckedIndexedAccess": false,
46
- "baseUrl": ".",
47
- "rootDir": "./src",
48
- "typeRoots": [
49
- "types",
50
- "voby/dist/types/jsx"
51
- ],
52
- // "tsBuildInfoFile": "./dist/tsconfig.tsbuildinfo",
53
- // "composite": true,
54
- },
55
- "exclude": [
56
- "node_modules",
57
- "vite.config.ts",
58
- "dist*"
59
- ]
1
+ {
2
+ "compilerOptions": {
3
+ "allowJs": false,
4
+ "allowSyntheticDefaultImports": true,
5
+ "allowUnreachableCode": false,
6
+ "allowUnusedLabels": false,
7
+ "alwaysStrict": true,
8
+ "declaration": true,
9
+ "declarationDir": "./dist/types",
10
+ "disableSizeLimit": true,
11
+ "esModuleInterop": false,
12
+ "forceConsistentCasingInFileNames": true,
13
+ // "importsNotUsedAsValues": "error",
14
+ "inlineSourceMap": false,
15
+ "inlineSources": false,
16
+ // "isolatedModules": true,
17
+ "jsx": "react-jsx",
18
+ "jsxImportSource": "woby",
19
+ "lib": [
20
+ "dom",
21
+ "esnext",
22
+ "WebWorker"
23
+ ],
24
+ "module": "esnext",
25
+ "moduleResolution": "node",
26
+ "newLine": "lf",
27
+ "noEmitOnError": false,
28
+ "noImplicitThis": true,
29
+ "noPropertyAccessFromIndexSignature": false,
30
+ "noUnusedLocals": false,
31
+ "noUnusedParameters": false,
32
+ "outDir": "dist",
33
+ "pretty": true,
34
+ "skipDefaultLibCheck": true,
35
+ "skipLibCheck": true,
36
+ "sourceMap": false,
37
+ "strict": true,
38
+ "strictBindCallApply": true,
39
+ "strictFunctionTypes": true,
40
+ "strictNullChecks": false,
41
+ "target": "es2020",
42
+ "useDefineForClassFields": false,
43
+ "useUnknownInCatchVariables": true,
44
+ "noImplicitAny": false,
45
+ "noUncheckedIndexedAccess": false,
46
+ "baseUrl": ".",
47
+ "rootDir": "./src",
48
+ "typeRoots": [
49
+ "types",
50
+ "voby/dist/types/jsx"
51
+ ],
52
+ // "tsBuildInfoFile": "./dist/tsconfig.tsbuildinfo",
53
+ // "composite": true,
54
+ },
55
+ "exclude": [
56
+ "node_modules",
57
+ "vite.*.*ts",
58
+ "dist*",
59
+ "src/docs",
60
+ "svgx"
61
+ ]
60
62
  }
@@ -0,0 +1,61 @@
1
+ {
2
+ "compilerOptions": {
3
+ "allowJs": false,
4
+ "allowSyntheticDefaultImports": true,
5
+ "allowUnreachableCode": false,
6
+ "allowUnusedLabels": false,
7
+ "alwaysStrict": true,
8
+ "declaration": true,
9
+ "declarationDir": "./dist/types",
10
+ "disableSizeLimit": true,
11
+ "esModuleInterop": false,
12
+ "forceConsistentCasingInFileNames": true,
13
+ // "importsNotUsedAsValues": "error",
14
+ "inlineSourceMap": false,
15
+ "inlineSources": false,
16
+ // "isolatedModules": true,
17
+ "jsx": "react-jsx",
18
+ "jsxImportSource": "woby",
19
+ "lib": [
20
+ "dom",
21
+ "esnext",
22
+ "WebWorker"
23
+ ],
24
+ "module": "esnext",
25
+ "moduleResolution": "node",
26
+ "newLine": "lf",
27
+ "noEmitOnError": false,
28
+ "noImplicitThis": true,
29
+ "noPropertyAccessFromIndexSignature": false,
30
+ "noUnusedLocals": false,
31
+ "noUnusedParameters": false,
32
+ "outDir": "dist",
33
+ "pretty": true,
34
+ "skipDefaultLibCheck": true,
35
+ "skipLibCheck": true,
36
+ "sourceMap": false,
37
+ "strict": true,
38
+ "strictBindCallApply": true,
39
+ "strictFunctionTypes": true,
40
+ "strictNullChecks": false,
41
+ "target": "es2020",
42
+ "useDefineForClassFields": false,
43
+ "useUnknownInCatchVariables": true,
44
+ "noImplicitAny": false,
45
+ "noUncheckedIndexedAccess": false,
46
+ "baseUrl": ".",
47
+ "rootDir": "./src",
48
+ "typeRoots": [
49
+ "types",
50
+ "voby/dist/types/jsx"
51
+ ],
52
+ // "tsBuildInfoFile": "./dist/tsconfig.tsbuildinfo",
53
+ // "composite": true,
54
+ },
55
+ "exclude": [
56
+ "node_modules",
57
+ "vite.*.*ts",
58
+ "dist*",
59
+ "svgx"
60
+ ]
61
+ }
@@ -1,40 +1,40 @@
1
- import { defineConfig } from 'vite'
2
- import path from 'path'
3
- import dts from 'vite-plugin-dts'
4
-
5
- const config = defineConfig({
6
- build: {
7
- minify: false,
8
- lib: {
9
- entry: ["./src/lib/index.tsx"],
10
- name: 'woby',
11
- formats: ['cjs', 'es', 'umd'],
12
- fileName: (format: string, entryName: string) => `${entryName}.${format}.js`
13
- },
14
- sourcemap: true,
15
- rollupOptions: {
16
- external: ['woby', 'woby/jsx-runtime', 'oby', 'woby/jsx-runtime'],
17
- output: {
18
- globals: {
19
- 'woby': 'woby',
20
- 'woby/jsx-runtime': 'woby/jsx-runtime',
21
- }
22
- }
23
- }
24
- },
25
- esbuild: {
26
- jsx: 'automatic',
27
- },
28
- plugins: [
29
- dts({ entryRoot: './src/lib', outputDir: './dist/types' })
30
- ],
31
- resolve: {
32
- alias: {
33
- '~': path.resolve(__dirname, 'src'),
34
- },
35
- },
36
- })
37
-
38
-
39
-
40
- export default config
1
+ import { defineConfig } from 'vite'
2
+ import path from 'path'
3
+ // import dts from 'vite-plugin-dts'
4
+
5
+ const config = defineConfig({
6
+ build: {
7
+ minify: false,
8
+ lib: {
9
+ entry: ["./src/index.tsx"],
10
+ name: 'woby',
11
+ formats: [/*'cjs', '*/'es'/*, 'umd'*/],
12
+ fileName: (format: string, entryName: string) => `${entryName}.${format}.js`
13
+ },
14
+ sourcemap: true,
15
+ rollupOptions: {
16
+ external: ['woby', 'woby/jsx-runtime', 'oby', 'woby/jsx-runtime'],
17
+ output: {
18
+ globals: {
19
+ 'woby': 'woby',
20
+ 'woby/jsx-runtime': 'woby/jsx-runtime',
21
+ }
22
+ }
23
+ }
24
+ },
25
+ esbuild: {
26
+ jsx: 'automatic',
27
+ },
28
+ plugins: [
29
+ // dts({ entryRoot: './src/lib', outputDir: './dist/types' })
30
+ ],
31
+ resolve: {
32
+ alias: {
33
+ '~': path.resolve(__dirname, 'src'),
34
+ },
35
+ },
36
+ })
37
+
38
+
39
+
40
+ export default config
@@ -1,14 +1,16 @@
1
1
  import { defineConfig } from 'vite'
2
2
  import path from 'path'
3
+ import tsconfig from 'vite-plugin-tsconfig'
4
+
3
5
  // import dts from 'vite-plugin-dts'
4
6
 
5
7
  const config = defineConfig({
6
8
  build: {
7
9
  minify: false,
8
10
  lib: {
9
- entry: ["./index.html"],
11
+ entry: ["index.html"],
10
12
  name: "woby-power-tooltip",
11
- formats: ['cjs', 'es', 'umd'],
13
+ formats: [/*'cjs', '*/'es'/*, 'umd'*/],
12
14
  fileName: (format: string, entryName: string) => `${entryName}.${format}.js`
13
15
  },
14
16
  outDir: './build',
@@ -19,13 +21,13 @@ const config = defineConfig({
19
21
  },
20
22
  plugins: [
21
23
  // dts({ entryRoot: './src', outputDir: './dist/types' })
24
+ tsconfig({filename:'tsconfig.web.ts'})
22
25
  ],
23
26
  resolve: {
24
27
  alias: {
25
28
  '~': path.resolve(__dirname, 'src'),
26
- 'woby/jsx-dev-runtime': process.argv.includes('dev') ? path.resolve('../woby/src/jsx/runtime') : 'woby', //'woby/jsx-dev-runtime',
27
- 'woby/jsx-runtime': process.argv.includes('dev') ? path.resolve('../woby/src/jsx/runtime') : 'woby', //'woby/jsx-runtime',
28
- 'woby': process.argv.includes('dev') ? path.resolve('../woby/src') : 'woby'
29
+ 'woby/jsx-dev-runtime': 'woby',
30
+ 'woby/jsx-runtime': 'woby',
29
31
  },
30
32
  },
31
33
  })