Skip to content

Commit

Permalink
[patch] add es2022 build target and mark node:util as external in bas…
Browse files Browse the repository at this point in the history
…e vite config
  • Loading branch information
electrovir committed Oct 7, 2024
1 parent fae3651 commit 6021d4d
Show file tree
Hide file tree
Showing 18 changed files with 94 additions and 87 deletions.
88 changes: 44 additions & 44 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@virmator/mono-repo-root",
"version": "13.5.0",
"version": "13.5.1",
"private": true,
"type": "module",
"workspaces": [
Expand Down
6 changes: 3 additions & 3 deletions packages/compile/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@virmator/compile",
"version": "13.5.0",
"version": "13.5.1",
"description": "Default TS compile plugin for virmator.",
"keywords": [
"virmator",
Expand Down Expand Up @@ -34,12 +34,12 @@
"@augment-vir/assert": "^30.2.0",
"@augment-vir/common": "^30.2.0",
"@augment-vir/node": "^30.2.0",
"@virmator/core": "^13.5.0"
"@virmator/core": "^13.5.1"
},
"devDependencies": {
"@augment-vir/test": "^30.2.0",
"@types/node": "^22.7.4",
"@virmator/plugin-testing": "^13.5.0",
"@virmator/plugin-testing": "^13.5.1",
"c8": "^10.1.2",
"chalk": "^5.3.0",
"concurrently": "^9.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@virmator/core",
"version": "13.5.0",
"version": "13.5.1",
"description": "Shared core functionality for all virmator plugins and the virmator CLI.",
"keywords": [
"automation",
Expand Down
4 changes: 2 additions & 2 deletions packages/deps/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@virmator/deps",
"version": "13.5.0",
"version": "13.5.1",
"description": "Default TS deps plugin for virmator.",
"keywords": [
"virmator",
Expand Down Expand Up @@ -36,7 +36,7 @@
"@augment-vir/assert": "^30.2.0",
"@augment-vir/common": "^30.2.0",
"@augment-vir/node": "^30.2.0",
"@virmator/core": "^13.5.0",
"@virmator/core": "^13.5.1",
"mri": "^1.2.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@virmator/docs",
"version": "13.5.0",
"version": "13.5.1",
"description": "Default TS docs plugin for virmator.",
"keywords": [
"virmator",
Expand Down Expand Up @@ -35,7 +35,7 @@
"@augment-vir/assert": "^30.2.0",
"@augment-vir/common": "^30.2.0",
"@augment-vir/node": "^30.2.0",
"@virmator/core": "^13.5.0",
"@virmator/core": "^13.5.1",
"chalk": "^5.3.0",
"mri": "^1.2.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/format/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@virmator/format",
"version": "13.5.0",
"version": "13.5.1",
"description": "Default format plugin for virmator.",
"keywords": [
"virmator",
Expand Down Expand Up @@ -33,7 +33,7 @@
"dependencies": {
"@augment-vir/assert": "^30.2.0",
"@augment-vir/common": "^30.2.0",
"@virmator/core": "^13.5.0",
"@virmator/core": "^13.5.1",
"mri": "^1.2.0"
},
"devDependencies": {
Expand Down
7 changes: 7 additions & 0 deletions packages/frontend/configs/vite.config.base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ export function createBaseConfig({forGitHubPages, packageDirPath}: BaseConfigOpt
build: {
outDir,
emptyOutDir: true,
target: 'es2022', // This should be kept in sync with `@virmator/compile/configs/tsconfig.base.json`.
rollupOptions: {
external: [
// This is specified, but not used, in `@augment-vir/common`'s `log` export. It is only used inside a Node.js environment.
'node:util',
],
},
},
},
basePaths: {
Expand Down
Loading

0 comments on commit 6021d4d

Please sign in to comment.