Skip to content

Commit 3f6c6a4

Browse files
yangCopybara
authored and
Copybara
committed
Merge "[mono] Update more builds & deps"
GitOrigin-RevId: de506e9343e946c76c2dffddc57f563271561f62
1 parent 7f3ca35 commit 3f6c6a4

File tree

9 files changed

+38
-43
lines changed

9 files changed

+38
-43
lines changed

Diff for: lerna.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
22
"version": "independent",
3-
"npmClient": "yarn",
4-
"useWorkspaces": true
3+
"npmClient": "yarn"
54
}

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"eslint-plugin-react": "^7.29.4",
4747
"if-env": "^1.0.4",
4848
"jest": "29.5.0",
49-
"lerna": "^6.3.0",
49+
"lerna": "^7.4.2",
5050
"prettier": "2.7.1",
5151
"size-limit": "8.2.4",
5252
"tsconfig-paths": "^4.2.0",

Diff for: plasmicpkgs/antd5/src/registerSlider.tsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { Slider } from "antd";
2-
import React, { ReactElement, useMemo } from "react";
3-
import { capitalize, Registerable, registerComponentHelper } from "./utils";
4-
import kebabCase from "lodash/kebabCase";
51
import { PropType } from "@plasmicapp/host";
2+
import { Slider } from "antd";
63
import type { SliderTooltipProps } from "antd/lib/slider";
74
import type { TooltipPlacement } from "antd/lib/tooltip";
5+
import kebabCase from "lodash/kebabCase";
6+
import React, { ReactElement, useMemo } from "react";
7+
import { Registerable, registerComponentHelper } from "./utils";
88

99
export type StylableMark = {
1010
mark: number;
@@ -53,8 +53,8 @@ export interface AntdRangeSliderProps extends AntdSliderBaseProps {
5353
valueMax?: number;
5454
defaultValueMin?: number;
5555
defaultValueMax?: number;
56-
onChange: (value?: [number, number]) => void;
57-
onAfterChange: (value?: [number, number]) => void;
56+
onChange: (value?: number[]) => void;
57+
onAfterChange: (value?: number[]) => void;
5858
}
5959

6060
export function useMarks({

Diff for: plasmicpkgs/plasmic-content-stack/package.json

+7-8
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,16 @@
44
"description": "Plasmic ContentStack components.",
55
"main": "dist/index.js",
66
"typings": "dist/index.d.ts",
7-
"module": "dist/plasmic-content-stack.esm.js",
7+
"module": "dist/index.mjs",
88
"publishConfig": {
99
"access": "public"
1010
},
1111
"files": [
1212
"dist"
1313
],
1414
"scripts": {
15-
"start": "tsdx watch",
16-
"build": "tsdx build",
15+
"build": "tsup-node src/index.tsx --dts --format esm,cjs --target es2019",
1716
"test": "yarn --cwd=../.. test --passWithNoTests",
18-
"lint": "tsdx lint",
1917
"prepare": "if-env PREPARE_NO_BUILD=true || yarn build",
2018
"size": "size-limit",
2119
"analyze": "size-limit --why"
@@ -25,11 +23,11 @@
2523
},
2624
"size-limit": [
2725
{
28-
"path": "dist/plasmic-content-stack.cjs.production.min.js",
26+
"path": "dist/index.js",
2927
"limit": "10 KB"
3028
},
3129
{
32-
"path": "dist/plasmic-content-stack.esm.js",
30+
"path": "dist/index.mjs",
3331
"limit": "10 KB"
3432
}
3533
],
@@ -44,8 +42,9 @@
4442
"react": "^18.2.0",
4543
"react-dom": "^18.2.0",
4644
"size-limit": "^7.0.8",
47-
"tsdx": "^0.14.1",
48-
"tslib": "^2.3.1"
45+
"tslib": "^2.3.1",
46+
"tsup": "^7.2.0",
47+
"typescript": "^5.2.2"
4948
},
5049
"dependencies": {
5150
"change-case": "^4.1.2",

Diff for: plasmicpkgs/plasmic-contentful/package.json

+7-8
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,16 @@
44
"description": "Plasmic Contentful components.",
55
"main": "dist/index.js",
66
"typings": "dist/index.d.ts",
7-
"module": "dist/plasmic-contentful.esm.js",
7+
"module": "dist/index.mjs",
88
"publishConfig": {
99
"access": "public"
1010
},
1111
"files": [
1212
"dist"
1313
],
1414
"scripts": {
15-
"start": "tsdx watch",
16-
"build": "tsdx build",
15+
"build": "tsup-node src/index.tsx --dts --format esm,cjs --target es2019",
1716
"test": "yarn --cwd=../.. test --passWithNoTests",
18-
"lint": "tsdx lint",
1917
"prepare": "if-env PREPARE_NO_BUILD=true || yarn build",
2018
"size": "size-limit",
2119
"analyze": "size-limit --why"
@@ -25,11 +23,11 @@
2523
},
2624
"size-limit": [
2725
{
28-
"path": "dist/plasmic-contentful.cjs.production.min.js",
26+
"path": "dist/index.js",
2927
"limit": "10 KB"
3028
},
3129
{
32-
"path": "dist/plasmic-contentful.esm.js",
30+
"path": "dist/index.mjs",
3331
"limit": "10 KB"
3432
}
3533
],
@@ -44,8 +42,9 @@
4442
"react": "^18.2.0",
4543
"react-dom": "^18.2.0",
4644
"size-limit": "^7.0.8",
47-
"tsdx": "^0.14.1",
48-
"tslib": "^2.3.1"
45+
"tslib": "^2.3.1",
46+
"tsup": "^7.2.0",
47+
"typescript": "^5.2.2"
4948
},
5049
"dependencies": {
5150
"@contentful/rich-text-html-renderer": "^15.13.1",

Diff for: plasmicpkgs/plasmic-sanity-io/package.json

+7-8
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,23 @@
44
"description": "Plasmic Sanity.io components.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
7-
"module": "dist/plasmic-sanity-io.esm.js",
7+
"module": "dist/index.mjs",
88
"files": [
99
"dist"
1010
],
1111
"size-limit": [
1212
{
13-
"path": "dist/plasmic-sanity-io.cjs.production.min.js",
13+
"path": "dist/index.js",
1414
"limit": "10 KB"
1515
},
1616
{
17-
"path": "dist/plasmic-sanity-io.esm.js",
17+
"path": "dist/index.mjs",
1818
"limit": "10 KB"
1919
}
2020
],
2121
"scripts": {
22-
"build": "tsdx build",
23-
"start": "tsdx watch",
22+
"build": "tsup-node src/index.tsx --dts --format esm,cjs --target es2019",
2423
"test": "yarn --cwd=../.. test --passWithNoTests",
25-
"lint": "tsdx lint",
2624
"prepare": "if-env PREPARE_NO_BUILD=true || yarn build",
2725
"size": "size-limit",
2826
"analyze": "size-limit --why"
@@ -35,8 +33,9 @@
3533
"@types/node": "^17.0.14",
3634
"@types/react": "^18.2.33",
3735
"size-limit": "^7.0.8",
38-
"tsdx": "^0.14.1",
39-
"tslib": "^2.3.1"
36+
"tslib": "^2.3.1",
37+
"tsup": "^7.2.0",
38+
"typescript": "^5.2.2"
4039
},
4140
"dependencies": {
4241
"@sanity/client": "^6.2.0",

Diff for: plasmicpkgs/plasmic-strapi/package.json

+7-8
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,16 @@
44
"description": "Plasmic Strapi components.",
55
"main": "dist/index.js",
66
"typings": "dist/index.d.ts",
7-
"module": "dist/plasmic-strapi.esm.js",
7+
"module": "dist/index.mjs",
88
"publishConfig": {
99
"access": "public"
1010
},
1111
"files": [
1212
"dist"
1313
],
1414
"scripts": {
15-
"start": "tsdx watch",
16-
"build": "tsdx build",
15+
"build": "tsup-node src/index.tsx --dts --format esm,cjs --target es2019",
1716
"test": "yarn --cwd=../.. test --passWithNoTests",
18-
"lint": "tsdx lint",
1917
"prepare": "if-env PREPARE_NO_BUILD=true || yarn build",
2018
"size": "size-limit",
2119
"analyze": "size-limit --why"
@@ -25,11 +23,11 @@
2523
},
2624
"size-limit": [
2725
{
28-
"path": "dist/plasmic-strapi.cjs.production.min.js",
26+
"path": "dist/index.js",
2927
"limit": "10 KB"
3028
},
3129
{
32-
"path": "dist/plasmic-strapi.esm.js",
30+
"path": "dist/index.mjs",
3331
"limit": "10 KB"
3432
}
3533
],
@@ -46,8 +44,9 @@
4644
"react": "^18.2.0",
4745
"react-dom": "^18.2.0",
4846
"size-limit": "^7.0.8",
49-
"tsdx": "^0.14.1",
50-
"tslib": "^2.3.1"
47+
"tslib": "^2.3.1",
48+
"tsup": "^7.2.0",
49+
"typescript": "^5.2.2"
5150
},
5251
"dependencies": {
5352
"@types/dlv": "^1.1.2",

Diff for: plasmicpkgs/radix-ui/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
}
2020
],
2121
"scripts": {
22-
"build": "tsup src/index.tsx --dts --format esm,cjs --target es2019",
22+
"build": "tsup-node src/index.tsx --dts --format esm,cjs --target es2019",
2323
"test": "yarn --cwd=../.. test --passWithNoTests",
2424
"prepare": "if-env PREPARE_NO_BUILD=true || yarn build",
2525
"size": "size-limit",

Diff for: plasmicpkgs/react-audio-player/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"dist"
1313
],
1414
"scripts": {
15-
"build": "tsup src/index.tsx --dts --format esm,cjs --target es2019",
15+
"build": "tsup-node src/index.tsx --dts --format esm,cjs --target es2019",
1616
"test": "yarn --cwd=../.. test --passWithNoTests",
1717
"prepare": "if-env PREPARE_NO_BUILD=true || yarn build",
1818
"size": "size-limit",

0 commit comments

Comments
 (0)