File tree Expand file tree Collapse file tree 6 files changed +202
-98
lines changed Expand file tree Collapse file tree 6 files changed +202
-98
lines changed Original file line number Diff line number Diff line change 23
23
},
24
24
"packageManager" :
" [email protected] " ,
25
25
"devDependencies" : {
26
- "@builder.io/qwik" : " ^1.2.12 " ,
27
- "@builder.io/qwik-city" : " ^1.2.12 " ,
26
+ "@builder.io/qwik" : " ^1.2.17 " ,
27
+ "@builder.io/qwik-city" : " ^1.2.17 " ,
28
28
"@commitlint/cli" : " ^17.7.1" ,
29
29
"@commitlint/config-angular" : " ^17.7.0" ,
30
30
"@commitlint/config-conventional" : " ^17.7.0" ,
82
82
"eslint" : " ^8.48.0" ,
83
83
"eslint-config-prettier" : " ^8" ,
84
84
"eslint-plugin-cypress" : " ^2.14.0" ,
85
- "eslint-plugin-qwik" : " ^1.2.12 " ,
85
+ "eslint-plugin-qwik" : " ^1.2.17 " ,
86
86
"eslint-plugin-storybook" : " ^0.6.13" ,
87
87
"focus-trap" : " 7.5.3" ,
88
88
"husky" : " ^8.0.3" ,
Original file line number Diff line number Diff line change 22
22
"private" : false ,
23
23
"scripts" : {},
24
24
"peerDependencies" : {
25
- "@builder.io/qwik" : " >1.2.11 "
25
+ "@builder.io/qwik" : " >= 1.2.17 "
26
26
},
27
27
"dependencies" : {
28
- "@floating-ui/dom" : " 1.0.10" ,
28
+ "@qwik-ui/utils" : " workspace:*" ,
29
+ "@floating-ui/dom" : " ^1.0.10" ,
30
+ "focus-trap" : " ^7.5.3" ,
31
+ "body-scroll-lock" : " ^4.0.0-beta.0" ,
29
32
"country-list-json" : " ^1.1.0" ,
30
33
"libphonenumber-js" : " ^1.10.43"
31
34
}
Original file line number Diff line number Diff line change 1
1
/// <reference types="vitest" />
2
-
3
2
import { qwikVite } from '@builder.io/qwik/optimizer' ;
4
3
import { dirname , join } from 'path' ;
5
4
import { qwikNxVite } from 'qwik-nx/plugins' ;
@@ -8,6 +7,11 @@ import { defineConfig } from 'vite';
8
7
import dts from 'vite-plugin-dts' ;
9
8
import { viteStaticCopy } from 'vite-plugin-static-copy' ;
10
9
import tsconfigPaths from 'vite-tsconfig-paths' ;
10
+ import pkg from './package.json' ;
11
+
12
+ const { dependencies = { } , peerDependencies = { } } = pkg as any ;
13
+ const makeRegex = ( dep : any ) => new RegExp ( `^${ dep } (/.*)?$` ) ;
14
+ const excludeAll = ( obj : any ) => Object . keys ( obj ) . map ( makeRegex ) ;
11
15
12
16
export default defineConfig ( {
13
17
plugins : [
@@ -57,6 +61,11 @@ export default defineConfig({
57
61
formats : [ 'es' , 'cjs' ] ,
58
62
} ,
59
63
rollupOptions : {
64
+ external : [
65
+ / ^ n o d e : .* / ,
66
+ ...excludeAll ( dependencies ) ,
67
+ ...excludeAll ( peerDependencies ) ,
68
+ ] ,
60
69
output : {
61
70
preserveModules : true ,
62
71
preserveModulesRoot : 'packages/kit-headless/src' ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @qwik-ui/utils" ,
3
- "version" : " 0.0.0 " ,
3
+ "version" : " 0.0.1 " ,
4
4
"description" : " Qwik UI Utils" ,
5
5
"publishConfig" : {
6
6
"access" : " public"
9
9
"tailwind-merge" : " ^1.14.0"
10
10
},
11
11
"type" : " module" ,
12
- "main" : " ./index.js" ,
13
- "module" : " ./index.mjs" ,
12
+ "exports" : {
13
+ "." : {
14
+ "import" : " ./index.js" ,
15
+ "require" : " ./index.cjs"
16
+ }
17
+ },
18
+ "main" : " ./index.cjs" ,
19
+ "module" : " ./index.js" ,
14
20
"typings" : " ./index.d.ts"
15
21
}
Original file line number Diff line number Diff line change 1
1
/// <reference types="vitest" />
2
2
import { defineConfig } from 'vite' ;
3
3
4
- import viteTsConfigPaths from 'vite-tsconfig-paths' ;
5
- import dts from 'vite-plugin-dts' ;
6
4
import * as path from 'path' ;
5
+ import dts from 'vite-plugin-dts' ;
6
+ import viteTsConfigPaths from 'vite-tsconfig-paths' ;
7
7
8
8
export default defineConfig ( {
9
- cacheDir : '../../node_modules/.vite/cva ' ,
9
+ cacheDir : '../../node_modules/.vite/utils ' ,
10
10
11
11
plugins : [
12
12
dts ( {
@@ -35,7 +35,7 @@ export default defineConfig({
35
35
lib : {
36
36
// Could also be a dictionary or array of multiple entry points.
37
37
entry : 'src/index.ts' ,
38
- name : 'cva ' ,
38
+ name : 'utils ' ,
39
39
fileName : 'index' ,
40
40
// Change this to the formats you want to support.
41
41
// Don't forget to update your package.json as well.
You can’t perform that action at this time.
0 commit comments