Configure the package to compile TypeScript and copy SCSS and image assets (PNG, SVG) to dist/ before publishing, rather than publishing raw source files. This allows us to use tsc-alias for @src imports. Also use a more modern export map to decouple the internal file structure from the package's API, and add a build step to CI. BREAKING CHANGE: Consuming projects may need to update their imports or SASS @use lines. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
19 lines
327 B
JSON
19 lines
327 B
JSON
{
|
|
"extends": "@openedx/frontend-base/tools/tsconfig.json",
|
|
"compilerOptions": {
|
|
"rootDir": ".",
|
|
"outDir": "dist",
|
|
"paths": {
|
|
"@src/*": ["./src/*"]
|
|
},
|
|
},
|
|
"include": [
|
|
"src/**/*",
|
|
"app.d.ts",
|
|
"babel.config.js",
|
|
"eslint.config.js",
|
|
"jest.config.js",
|
|
"site.config.*.tsx"
|
|
]
|
|
}
|