Skip to content
Merged
3 changes: 2 additions & 1 deletion packages/i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"scripts": {
"clean": "rimraf ./dist",
"build:dev": "pnpm clean && tsc -p tsconfig.json",
"build:dev": "pnpm clean && tsc -p tsconfig.json && vite build",
"build:prod": "pnpm run build:dev && pnpm test",
"test": "vitest run --passWithNoTests"
},
Expand All @@ -28,6 +28,7 @@
"@types/react-dom": "catalog:",
"rimraf": "catalog:",
"typescript": "catalog:",
"vite": "catalog:",
"vite-tsconfig-paths": "catalog:",
"vitest": "catalog:"
},
Expand Down
5 changes: 3 additions & 2 deletions packages/i18n/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"baseUrl": ".",
"declaration": true,
"declarationMap": true,
"sourceMap": true,

"sourceMap": false,
"emitDeclarationOnly": true,
"noEmitOnError": true,
"rootDirs": ["./src", "./tests"],
"outDir": "./dist"
},
Expand Down
40 changes: 40 additions & 0 deletions packages/i18n/vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*
* Copyright 2021-Present The Serverless Workflow Specification Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { resolve } from "node:path";
Comment thread
fantonangeli marked this conversation as resolved.
Outdated
import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";

export default defineConfig({
build: {
emptyOutDir: false,
sourcemap: true,
lib: {
entry: "src/index.ts",
fileName: "index",
Comment thread
fantonangeli marked this conversation as resolved.
Outdated
formats: ["es"],
},
rollupOptions: {
external: ["react", "react-dom"],
Comment thread
fantonangeli marked this conversation as resolved.
Outdated
},
},
plugins: [
tsconfigPaths({
// Provide an array of paths to the tsconfig files you want to use
projects: ["./tsconfig.json"],
}),
],
});
4 changes: 2 additions & 2 deletions packages/serverless-workflow-diagram-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"format:check": "oxfmt --config .oxfmtrc.json --check",
"clean": "rimraf ./dist",
"clean:storybook": "rimraf ./dist-storybook",
"build:dev": "pnpm clean && tsc -p tsconfig.json",
"build:prod": "pnpm lint && pnpm clean && tsc -p tsconfig.json && pnpm test",
"build:dev": "pnpm clean && tsc -p tsconfig.json && vite build",
"build:prod": "pnpm lint && pnpm clean && tsc -p tsconfig.json && vite build && pnpm test",
"test": "vitest run --passWithNoTests",
"start": "storybook dev -p 6006 --no-open",
"build:storybook": "pnpm clean:storybook && storybook build --output-dir ./dist-storybook"
Expand Down
5 changes: 3 additions & 2 deletions packages/serverless-workflow-diagram-editor/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
"baseUrl": ".",
"declaration": true,
"declarationMap": true,
"sourceMap": true,

"sourceMap": false,
"emitDeclarationOnly": true,
"noEmitOnError": true,
"rootDirs": ["./src", "./tests"],
"outDir": "./dist"
},
Expand Down
40 changes: 40 additions & 0 deletions packages/serverless-workflow-diagram-editor/vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*
* Copyright 2021-Present The Serverless Workflow Specification Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { resolve } from "node:path";
Comment thread
fantonangeli marked this conversation as resolved.
Outdated
import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";

export default defineConfig({
build: {
emptyOutDir: false,
sourcemap: true,
lib: {
entry: "src/index.ts",
fileName: "index",
Comment thread
fantonangeli marked this conversation as resolved.
Outdated
formats: ["es"],
},
rollupOptions: {
external: ["react", "react-dom"],
Comment thread
fantonangeli marked this conversation as resolved.
Outdated
},
},
plugins: [
tsconfigPaths({
// Provide an array of paths to the tsconfig files you want to use
projects: ["./tsconfig.json"],
}),
],
});
5 changes: 4 additions & 1 deletion pnpm-lock.yaml

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

4 changes: 2 additions & 2 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ packages:
- packages/*
catalog:
"@chromatic-com/storybook": ^5.0.1
"js-yaml": ^4.1.1
"@serverlessworkflow/sdk": ^1.0.1
"@storybook/addon-a11y": ^10.2.19
"@storybook/addon-docs": ^10.2.19
Expand All @@ -20,6 +19,7 @@ catalog:
"@vitest/ui": ^4.1.0
"@xyflow/react": ^12.10.1
husky: ^9.1.7
"js-yaml": ^4.1.1
jsdom: ^25.0.0
lint-staged: ^16.4.0
oxfmt: ^0.41.0
Expand All @@ -30,7 +30,7 @@ catalog:
storybook: ^10.2.19
syncpack: ^14.2.0
typescript: ^5.9.3
vite: ^6.0.0
vite: ^6.4.1
vite-tsconfig-paths: ^6.1.1
vitest: ^4.1.0
cleanupUnusedCatalogs: true
Expand Down
Loading