Skip to content

Commit

Permalink
Merge branch 'version' into keyboard-outside-iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
dqnykamp committed Jul 1, 2024
2 parents a000b1c + ac911f8 commit 6251db2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/doenetml-iframe/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { defineConfig } from "vite";
import dts from "vite-plugin-dts";
import { viteStaticCopy } from "vite-plugin-static-copy";
import { createPackageJsonTransformer } from "../../scripts/transform-package-json";
import { version } from "./package.json";

// These are the dependencies that will not be bundled into the library.
const EXTERNAL_DEPS = ["react", "react-dom"];
Expand Down Expand Up @@ -46,6 +47,6 @@ export default defineConfig({
},
define: {
"process.env.NODE_ENV": '"production"',
IFRAME_VERSION: JSON.stringify(process.env.npm_package_version),
IFRAME_VERSION: JSON.stringify(version),
},
});
3 changes: 2 additions & 1 deletion packages/doenetml/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { createRequire } from "module";
const require = createRequire(import.meta.url);
import dts from "vite-plugin-dts";
import { createPackageJsonTransformer } from "../../scripts/transform-package-json";
import { version } from "./package.json";

// These are the dependencies that will not be bundled into the library.
const EXTERNAL_DEPS = ["react", "react-dom", "styled-components"];
Expand Down Expand Up @@ -40,7 +41,7 @@ export default defineConfig({
}),
],
define: {
DOENETML_VERSION: JSON.stringify(process.env.npm_package_version),
DOENETML_VERSION: JSON.stringify(version),
},
server: {
port: 8012,
Expand Down
3 changes: 2 additions & 1 deletion packages/standalone/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { defineConfig } from "vite";
import dts from "vite-plugin-dts";
import { viteStaticCopy } from "vite-plugin-static-copy";
import { createPackageJsonTransformer } from "../../scripts/transform-package-json";
import { version } from "./package.json";

// These are the dependencies that will not be bundled into the library.
const EXTERNAL_DEPS = [];
Expand Down Expand Up @@ -39,6 +40,6 @@ export default defineConfig({
},
define: {
"process.env.NODE_ENV": '"production"',
STANDALONE_VERSION: JSON.stringify(process.env.npm_package_version),
STANDALONE_VERSION: JSON.stringify(version),
},
});

0 comments on commit 6251db2

Please sign in to comment.