File tree 24 files changed +191
-33
lines changed
24 files changed +191
-33
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @react-spring/types ' : patch
3
+ ' @react-spring/core ' : patch
4
+ ' @react-spring/animated ' : patch
5
+ ' @react-spring/parallax ' : patch
6
+ ' @react-spring/rafz ' : patch
7
+ ' react-spring ' : patch
8
+ ' @react-spring/shared ' : patch
9
+ ' @react-spring/konva ' : patch
10
+ ' @react-spring/native ' : patch
11
+ ' @react-spring/three ' : patch
12
+ ' @react-spring/web ' : patch
13
+ ' @react-spring/zdog ' : patch
14
+ ---
15
+
16
+ fix types package
Original file line number Diff line number Diff line change
1
+ ---
2
+ ' react-spring ' : patch
3
+ ' @react-spring/animated ' : patch
4
+ ' @react-spring/parallax ' : patch
5
+ ' @react-spring/shared ' : patch
6
+ ' @react-spring/types ' : patch
7
+ ' @react-spring/native ' : patch
8
+ ' @react-spring/core ' : patch
9
+ ' @react-spring/rafz ' : patch
10
+ ' @react-spring/konva ' : patch
11
+ ' @react-spring/three ' : patch
12
+ ' @react-spring/zdog ' : patch
13
+ ' @react-spring/web ' : patch
14
+ ---
15
+
16
+ chore: add exports to package.json
Original file line number Diff line number Diff line change 3
3
"version" : " 9.7.0" ,
4
4
"description" : " Animated component props for React" ,
5
5
"main" : " dist/index.js" ,
6
- "module" : " dist/index.mjs " ,
6
+ "module" : " dist/esm/ index.js " ,
7
7
"types" : " dist/index.d.ts" ,
8
+ "exports" : {
9
+ "." : {
10
+ "types" : " ./dist/index.d.ts" ,
11
+ "import" : " ./dist/esm/index.js" ,
12
+ "module" : " ./dist/esm/index.js" ,
13
+ "require" : " ./dist/index.js"
14
+ },
15
+ "./package.json" : " ./package.json"
16
+ },
8
17
"files" : [
9
18
" dist/*" ,
10
19
" README.md" ,
29
38
" Josh Ellis (https://github.com/joshuaellis)"
30
39
],
31
40
"scripts" : {
32
- "build" : " tsup" ,
41
+ "build" : " tsup --legacy-output " ,
33
42
"dev" : " tsup"
34
43
},
35
44
"dependencies" : {
Original file line number Diff line number Diff line change 2
2
"name" : " @react-spring/core" ,
3
3
"version" : " 9.7.0" ,
4
4
"main" : " dist/index.js" ,
5
- "module" : " dist/index.mjs " ,
5
+ "module" : " dist/esm/ index.js " ,
6
6
"types" : " dist/index.d.ts" ,
7
+ "exports" : {
8
+ "." : {
9
+ "types" : " ./dist/index.d.ts" ,
10
+ "import" : " ./dist/esm/index.js" ,
11
+ "module" : " ./dist/esm/index.js" ,
12
+ "require" : " ./dist/index.js"
13
+ },
14
+ "./package.json" : " ./package.json"
15
+ },
7
16
"files" : [
8
17
" dist/*" ,
9
18
" README.md" ,
32
41
" Josh Ellis (https://github.com/joshuaellis)"
33
42
],
34
43
"scripts" : {
35
- "build" : " tsup" ,
44
+ "build" : " tsup --legacy-output " ,
36
45
"dev" : " tsup"
37
46
},
38
47
"dependencies" : {
Original file line number Diff line number Diff line change @@ -21,6 +21,4 @@ export {
21
21
export { inferTo } from './helpers'
22
22
23
23
export * from './types'
24
- export type { UnknownProps } from '@react-spring/types'
25
- export * from '@react-spring/types/animated'
26
- export * from '@react-spring/types/interpolation'
24
+ export * from '@react-spring/types'
Original file line number Diff line number Diff line change 2
2
"name" : " @react-spring/parallax" ,
3
3
"version" : " 9.7.0" ,
4
4
"main" : " dist/index.js" ,
5
- "module" : " dist/index.mjs " ,
5
+ "module" : " dist/esm/ index.js " ,
6
6
"types" : " dist/index.d.ts" ,
7
+ "exports" : {
8
+ "." : {
9
+ "types" : " ./dist/index.d.ts" ,
10
+ "import" : " ./dist/esm/index.js" ,
11
+ "module" : " ./dist/esm/index.js" ,
12
+ "require" : " ./dist/index.js"
13
+ },
14
+ "./package.json" : " ./package.json"
15
+ },
7
16
"files" : [
8
17
" dist/*" ,
9
18
" README.md" ,
28
37
" Josh Ellis (https://github.com/joshuaellis)"
29
38
],
30
39
"scripts" : {
31
- "build" : " tsup" ,
40
+ "build" : " tsup --legacy-output " ,
32
41
"dev" : " tsup" ,
33
42
"test" : " vite serve ./test"
34
43
},
Original file line number Diff line number Diff line change 3
3
"version" : " 9.7.0" ,
4
4
"description" : " react-spring's fork of rafz one frameloop to rule them all" ,
5
5
"main" : " dist/index.js" ,
6
- "module" : " dist/index.mjs " ,
6
+ "module" : " dist/esm/ index.js " ,
7
7
"types" : " dist/index.d.ts" ,
8
+ "exports" : {
9
+ "." : {
10
+ "types" : " ./dist/index.d.ts" ,
11
+ "import" : " ./dist/esm/index.js" ,
12
+ "module" : " ./dist/esm/index.js" ,
13
+ "require" : " ./dist/index.js"
14
+ },
15
+ "./package.json" : " ./package.json"
16
+ },
8
17
"files" : [
9
18
" dist/*" ,
10
19
" README.md" ,
26
35
"license" : " MIT" ,
27
36
"author" : " Josh Ellis" ,
28
37
"scripts" : {
29
- "build" : " tsup" ,
38
+ "build" : " tsup --legacy-output " ,
30
39
"dev" : " tsup"
31
40
}
32
41
}
Original file line number Diff line number Diff line change 2
2
"name" : " react-spring" ,
3
3
"version" : " 9.7.0" ,
4
4
"main" : " dist/index.js" ,
5
- "module" : " dist/index.mjs " ,
5
+ "module" : " dist/esm/ index.js " ,
6
6
"types" : " dist/index.d.ts" ,
7
+ "exports" : {
8
+ "." : {
9
+ "types" : " ./dist/index.d.ts" ,
10
+ "import" : " ./dist/esm/index.js" ,
11
+ "module" : " ./dist/esm/index.js" ,
12
+ "require" : " ./dist/index.js"
13
+ },
14
+ "./package.json" : " ./package.json"
15
+ },
7
16
"files" : [
8
17
" dist/*" ,
9
18
" README.md" ,
40
49
"react-dom" : " ^16.8.0 || ^17.0.0 || ^18.0.0"
41
50
},
42
51
"scripts" : {
43
- "build" : " tsup" ,
52
+ "build" : " tsup --legacy-output " ,
44
53
"dev" : " tsup"
45
54
}
46
55
}
Original file line number Diff line number Diff line change 3
3
"version" : " 9.7.0" ,
4
4
"description" : " Globals and shared modules" ,
5
5
"main" : " dist/index.js" ,
6
- "module" : " dist/index.mjs " ,
6
+ "module" : " dist/esm/ index.js " ,
7
7
"types" : " dist/index.d.ts" ,
8
+ "exports" : {
9
+ "." : {
10
+ "types" : " ./dist/index.d.ts" ,
11
+ "import" : " ./dist/esm/index.js" ,
12
+ "module" : " ./dist/esm/index.js" ,
13
+ "require" : " ./dist/index.js"
14
+ },
15
+ "./package.json" : " ./package.json"
16
+ },
8
17
"files" : [
9
18
" dist/*" ,
10
19
" README.md" ,
36
45
"react" : " ^16.8.0 || ^17.0.0 || ^18.0.0"
37
46
},
38
47
"scripts" : {
39
- "build" : " tsup" ,
48
+ "build" : " tsup --legacy-output " ,
40
49
"dev" : " tsup"
41
50
}
42
51
}
Original file line number Diff line number Diff line change 2
2
"name" : " @react-spring/types" ,
3
3
"version" : " 9.7.0" ,
4
4
"description" : " Internal package with TypeScript stuff" ,
5
- "main" : " index.js" ,
6
- "types" : " index.d.ts" ,
5
+ "main" : " dist/index.js" ,
6
+ "module" : " dist/esm/index.js" ,
7
+ "types" : " dist/index.d.ts" ,
8
+ "exports" : {
9
+ "." : {
10
+ "types" : " ./dist/index.d.ts" ,
11
+ "import" : " ./dist/esm/index.js" ,
12
+ "module" : " ./dist/esm/index.js" ,
13
+ "require" : " ./dist/index.js"
14
+ },
15
+ "./package.json" : " ./package.json"
16
+ },
17
+ "files" : [
18
+ " dist/*" ,
19
+ " README.md" ,
20
+ " LICENSE"
21
+ ],
7
22
"repository" : " pmndrs/react-spring" ,
8
23
"homepage" : " https://github.com/pmndrs/react-spring#readme" ,
9
24
"keywords" : [
21
36
"author" : " Paul Henschel" ,
22
37
"maintainers" : [
23
38
" Josh Ellis (https://github.com/joshuaellis)"
24
- ]
39
+ ],
40
+ "scripts" : {
41
+ "build" : " tsup --legacy-output" ,
42
+ "dev" : " tsup"
43
+ }
25
44
}
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
export * from './animated'
2
2
export * from './interpolation'
3
- export * from './util '
3
+ export * from './utils '
Original file line number Diff line number Diff line change 1
- import { Arrify , Constrain } from './util '
1
+ import { Arrify , Constrain } from './utils '
2
2
import { Animatable } from './animated'
3
3
4
4
export type EasingFunction = ( t : number ) => number
Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ export interface UnknownProps extends Lookup<unknown> {}
92
92
93
93
/** Use `[T] extends [Any]` to know if a type parameter is `any` */
94
94
export class Any {
95
+ // @ts -ignore
95
96
private _ : never
96
97
}
97
98
Original file line number Diff line number Diff line change
1
+ import { defineConfig } from 'tsup'
2
+ import { defaultConfig } from '../../tsup.config.base'
3
+
4
+ export default defineConfig ( opts => {
5
+ return defaultConfig (
6
+ {
7
+ entry : [ 'src/index.ts' ] ,
8
+ outDir : 'dist' ,
9
+ } ,
10
+ opts
11
+ )
12
+ } )
Original file line number Diff line number Diff line change @@ -18,9 +18,6 @@ if [[ -z "$distTag" ]]; then
18
18
read -r distTag
19
19
fi
20
20
21
-
22
- echo " $version "
23
-
24
21
# publish packages
25
22
./node_modules/.bin/changeset version --snapshot " $version "
26
23
./node_modules/.bin/changeset publish --no-git-tag --snapshot --tag " $distTag "
Original file line number Diff line number Diff line change 2
2
"name" : " @react-spring/konva" ,
3
3
"version" : " 9.7.0" ,
4
4
"main" : " dist/index.js" ,
5
- "module" : " dist/index.mjs " ,
5
+ "module" : " dist/esm/ index.js " ,
6
6
"types" : " dist/index.d.ts" ,
7
+ "exports" : {
8
+ "." : {
9
+ "types" : " ./dist/index.d.ts" ,
10
+ "import" : " ./dist/esm/index.js" ,
11
+ "module" : " ./dist/esm/index.js" ,
12
+ "require" : " ./dist/index.js"
13
+ },
14
+ "./package.json" : " ./package.json"
15
+ },
7
16
"files" : [
8
17
" dist/*" ,
9
18
" README.md" ,
39
48
"react-konva" : " ^16.8.0 || ^16.8.7-0 || ^16.9.0-0 || ^16.10.1-0 || ^16.12.0-0 || ^16.13.0-0 || ^17.0.0-0 || ^17.0.1-0 || ^17.0.2-0 || ^18.0.0-0"
40
49
},
41
50
"scripts" : {
42
- "build" : " tsup" ,
51
+ "build" : " tsup --legacy-output " ,
43
52
"dev" : " tsup"
44
53
}
45
54
}
Original file line number Diff line number Diff line change 2
2
"name" : " @react-spring/native" ,
3
3
"version" : " 9.7.0" ,
4
4
"main" : " dist/index.js" ,
5
- "module" : " dist/index.mjs " ,
5
+ "module" : " dist/esm/ index.js " ,
6
6
"types" : " dist/index.d.ts" ,
7
+ "exports" : {
8
+ "." : {
9
+ "types" : " ./dist/index.d.ts" ,
10
+ "import" : " ./dist/esm/index.js" ,
11
+ "module" : " ./dist/esm/index.js" ,
12
+ "require" : " ./dist/index.js"
13
+ },
14
+ "./package.json" : " ./package.json"
15
+ },
7
16
"files" : [
8
17
" dist/*" ,
9
18
" README.md" ,
38
47
"react-native" : " >=0.58"
39
48
},
40
49
"scripts" : {
41
- "build" : " tsup" ,
50
+ "build" : " tsup --legacy-output " ,
42
51
"dev" : " tsup"
43
52
}
44
53
}
Original file line number Diff line number Diff line change 2
2
"name" : " @react-spring/three" ,
3
3
"version" : " 9.7.0" ,
4
4
"main" : " dist/index.js" ,
5
- "module" : " dist/index.mjs " ,
5
+ "module" : " dist/esm/ index.js " ,
6
6
"types" : " dist/index.d.ts" ,
7
+ "exports" : {
8
+ "." : {
9
+ "types" : " ./dist/index.d.ts" ,
10
+ "import" : " ./dist/esm/index.js" ,
11
+ "module" : " ./dist/esm/index.js" ,
12
+ "require" : " ./dist/index.js"
13
+ },
14
+ "./package.json" : " ./package.json"
15
+ },
7
16
"files" : [
8
17
" dist/*" ,
9
18
" README.md" ,
39
48
"three" : " >=0.126"
40
49
},
41
50
"scripts" : {
42
- "build" : " tsup" ,
51
+ "build" : " tsup --legacy-output " ,
43
52
"dev" : " tsup"
44
53
}
45
54
}
You can’t perform that action at this time.
0 commit comments