Skip to content

Commit a4d2367

Browse files
committed
wip
1 parent 65bb5f8 commit a4d2367

File tree

5 files changed

+171
-1
lines changed

5 files changed

+171
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"@changesets/cli": "^2.23.2",
4040
"@microsoft/api-extractor": "^7.47.9",
4141
"@npmcli/promise-spawn": "^7.0.0",
42+
"@swc/core": "^1.11.18",
4243
"@types/express": "4",
4344
"@types/jest": "^29.5.11",
4445
"@types/lodash": "^4",

packages/browser/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
umd.old
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/bin/bash
2+
3+
# This script is for detecting how the webpack build has changed.
4+
5+
# 1. yarn umd && cp dist/umd dist/umd.old
6+
# 2. make changes to your webpack config
7+
# 3. `bash scripts/umd-diff.sh` to see changes
8+
9+
# Ensure the script stops on errors
10+
set -e
11+
12+
# Define directories
13+
DIST_DIR="./dist/umd"
14+
TMP_DIR="./dist/umd.old"
15+
16+
# Run the UMD build
17+
echo "Running 'yarn umd' to compile into $DIST_DIR..."
18+
yarn umd
19+
20+
# Check if the temporary directory exists
21+
if [ ! -d "$TMP_DIR" ]; then
22+
echo "Temporary directory $TMP_DIR does not exist. Exiting."
23+
exit 1
24+
fi
25+
26+
# Compare the directories
27+
echo "Comparing $DIST_DIR with $TMP_DIR..."
28+
if command -v colordiff &> /dev/null; then
29+
# Use colordiff if available for a prettier diff
30+
diff -r "$DIST_DIR" "$TMP_DIR" | grep -E "^(Only in|diff|@@)" | colordiff
31+
fi
32+
33+
rm
34+
# Print completion message
35+
echo "Comparison complete."

packages/page-tools/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"exclude": ["node_modules", "dist"],
44
"compilerOptions": {
55
"module": "esnext",
6-
"target": "ES2020",
6+
"target": "ES5",
77
"moduleResolution": "node",
88
"lib": ["es2020", "DOM", "DOM.Iterable"]
99
}

yarn.lock

Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7924,6 +7924,129 @@ __metadata:
79247924
languageName: node
79257925
linkType: hard
79267926

7927+
"@swc/core-darwin-arm64@npm:1.11.18":
7928+
version: 1.11.18
7929+
resolution: "@swc/core-darwin-arm64@npm:1.11.18"
7930+
conditions: os=darwin & cpu=arm64
7931+
languageName: node
7932+
linkType: hard
7933+
7934+
"@swc/core-darwin-x64@npm:1.11.18":
7935+
version: 1.11.18
7936+
resolution: "@swc/core-darwin-x64@npm:1.11.18"
7937+
conditions: os=darwin & cpu=x64
7938+
languageName: node
7939+
linkType: hard
7940+
7941+
"@swc/core-linux-arm-gnueabihf@npm:1.11.18":
7942+
version: 1.11.18
7943+
resolution: "@swc/core-linux-arm-gnueabihf@npm:1.11.18"
7944+
conditions: os=linux & cpu=arm
7945+
languageName: node
7946+
linkType: hard
7947+
7948+
"@swc/core-linux-arm64-gnu@npm:1.11.18":
7949+
version: 1.11.18
7950+
resolution: "@swc/core-linux-arm64-gnu@npm:1.11.18"
7951+
conditions: os=linux & cpu=arm64 & libc=glibc
7952+
languageName: node
7953+
linkType: hard
7954+
7955+
"@swc/core-linux-arm64-musl@npm:1.11.18":
7956+
version: 1.11.18
7957+
resolution: "@swc/core-linux-arm64-musl@npm:1.11.18"
7958+
conditions: os=linux & cpu=arm64 & libc=musl
7959+
languageName: node
7960+
linkType: hard
7961+
7962+
"@swc/core-linux-x64-gnu@npm:1.11.18":
7963+
version: 1.11.18
7964+
resolution: "@swc/core-linux-x64-gnu@npm:1.11.18"
7965+
conditions: os=linux & cpu=x64 & libc=glibc
7966+
languageName: node
7967+
linkType: hard
7968+
7969+
"@swc/core-linux-x64-musl@npm:1.11.18":
7970+
version: 1.11.18
7971+
resolution: "@swc/core-linux-x64-musl@npm:1.11.18"
7972+
conditions: os=linux & cpu=x64 & libc=musl
7973+
languageName: node
7974+
linkType: hard
7975+
7976+
"@swc/core-win32-arm64-msvc@npm:1.11.18":
7977+
version: 1.11.18
7978+
resolution: "@swc/core-win32-arm64-msvc@npm:1.11.18"
7979+
conditions: os=win32 & cpu=arm64
7980+
languageName: node
7981+
linkType: hard
7982+
7983+
"@swc/core-win32-ia32-msvc@npm:1.11.18":
7984+
version: 1.11.18
7985+
resolution: "@swc/core-win32-ia32-msvc@npm:1.11.18"
7986+
conditions: os=win32 & cpu=ia32
7987+
languageName: node
7988+
linkType: hard
7989+
7990+
"@swc/core-win32-x64-msvc@npm:1.11.18":
7991+
version: 1.11.18
7992+
resolution: "@swc/core-win32-x64-msvc@npm:1.11.18"
7993+
conditions: os=win32 & cpu=x64
7994+
languageName: node
7995+
linkType: hard
7996+
7997+
"@swc/core@npm:^1.11.18":
7998+
version: 1.11.18
7999+
resolution: "@swc/core@npm:1.11.18"
8000+
dependencies:
8001+
"@swc/core-darwin-arm64": 1.11.18
8002+
"@swc/core-darwin-x64": 1.11.18
8003+
"@swc/core-linux-arm-gnueabihf": 1.11.18
8004+
"@swc/core-linux-arm64-gnu": 1.11.18
8005+
"@swc/core-linux-arm64-musl": 1.11.18
8006+
"@swc/core-linux-x64-gnu": 1.11.18
8007+
"@swc/core-linux-x64-musl": 1.11.18
8008+
"@swc/core-win32-arm64-msvc": 1.11.18
8009+
"@swc/core-win32-ia32-msvc": 1.11.18
8010+
"@swc/core-win32-x64-msvc": 1.11.18
8011+
"@swc/counter": ^0.1.3
8012+
"@swc/types": ^0.1.21
8013+
peerDependencies:
8014+
"@swc/helpers": "*"
8015+
dependenciesMeta:
8016+
"@swc/core-darwin-arm64":
8017+
optional: true
8018+
"@swc/core-darwin-x64":
8019+
optional: true
8020+
"@swc/core-linux-arm-gnueabihf":
8021+
optional: true
8022+
"@swc/core-linux-arm64-gnu":
8023+
optional: true
8024+
"@swc/core-linux-arm64-musl":
8025+
optional: true
8026+
"@swc/core-linux-x64-gnu":
8027+
optional: true
8028+
"@swc/core-linux-x64-musl":
8029+
optional: true
8030+
"@swc/core-win32-arm64-msvc":
8031+
optional: true
8032+
"@swc/core-win32-ia32-msvc":
8033+
optional: true
8034+
"@swc/core-win32-x64-msvc":
8035+
optional: true
8036+
peerDependenciesMeta:
8037+
"@swc/helpers":
8038+
optional: true
8039+
checksum: ccf06f3cc553defa2288a99beb35aeb3ca3c450920c5eafd1583136a3ef5963e128c34671f34bdbcc7d4760f60692498c9b145ba8eeb99beff6643bd71637577
8040+
languageName: node
8041+
linkType: hard
8042+
8043+
"@swc/counter@npm:^0.1.3":
8044+
version: 0.1.3
8045+
resolution: "@swc/counter@npm:0.1.3"
8046+
checksum: df8f9cfba9904d3d60f511664c70d23bb323b3a0803ec9890f60133954173047ba9bdeabce28cd70ba89ccd3fd6c71c7b0bd58be85f611e1ffbe5d5c18616598
8047+
languageName: node
8048+
linkType: hard
8049+
79278050
"@swc/helpers@npm:0.4.11":
79288051
version: 0.4.11
79298052
resolution: "@swc/helpers@npm:0.4.11"
@@ -7942,6 +8065,15 @@ __metadata:
79428065
languageName: node
79438066
linkType: hard
79448067

8068+
"@swc/types@npm:^0.1.21":
8069+
version: 0.1.21
8070+
resolution: "@swc/types@npm:0.1.21"
8071+
dependencies:
8072+
"@swc/counter": ^0.1.3
8073+
checksum: 857621e50ec78407bfeaa92663be86fc9ee2c9c103ccffd7f48c55b6f3c67a82e270f6524c7974c2c608a2ed0fcf4f00c20f61c8d1fdfd2aa55b2c42a28223f1
8074+
languageName: node
8075+
linkType: hard
8076+
79458077
"@szmarczak/http-timer@npm:^1.1.2":
79468078
version: 1.1.2
79478079
resolution: "@szmarczak/http-timer@npm:1.1.2"
@@ -9996,6 +10128,7 @@ __metadata:
999610128
"@changesets/cli": ^2.23.2
999710129
"@microsoft/api-extractor": ^7.47.9
999810130
"@npmcli/promise-spawn": ^7.0.0
10131+
"@swc/core": ^1.11.18
999910132
"@types/express": 4
1000010133
"@types/jest": ^29.5.11
1000110134
"@types/lodash": ^4

0 commit comments

Comments
 (0)