Ship /src/lib in ESM for enabeling dynamic imports

This commit is contained in:
garronej
2022-07-29 23:10:35 +02:00
parent 449f100bc0
commit d79081dee4
19 changed files with 69 additions and 25 deletions

View File

@ -6,7 +6,7 @@ import { getProjectRoot } from "../../bin/tools/getProjectRoot.js";
setupSampleReactProject();
const binDirPath = pathJoin(getProjectRoot(), "dist", "bin");
const binDirPath = pathJoin(getProjectRoot(), "dist_test", "bin");
st.execSyncTrace(
//`node ${pathJoin(binDirPath, "build-keycloak-theme")} --external-assets`,

20
src/test/tsconfig.json Normal file
View File

@ -0,0 +1,20 @@
{
"compilerOptions": {
"module": "CommonJS",
"target": "es5",
"lib": ["es2015", "DOM", "ES2019.Object"],
"esModuleInterop": true,
"declaration": true,
"outDir": "../../dist_test",
"sourceMap": true,
"newLine": "LF",
"noUnusedLocals": true,
"noUnusedParameters": true,
"incremental": true,
"strict": true,
"downlevelIteration": true,
"jsx": "react-jsx",
"noFallthroughCasesInSwitch": true
},
"include": [".."]
}