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>
23 lines
361 B
JavaScript
23 lines
361 B
JavaScript
// @ts-check
|
|
|
|
const { createLintConfig } = require('@openedx/frontend-base/tools');
|
|
|
|
module.exports = createLintConfig(
|
|
{
|
|
files: [
|
|
'src/**/*',
|
|
'site.config.*',
|
|
],
|
|
},
|
|
{
|
|
ignores: [
|
|
'coverage/*',
|
|
'dist/*',
|
|
'documentation/*',
|
|
'node_modules/*',
|
|
'**/__mocks__/*',
|
|
'**/__snapshots__/*',
|
|
],
|
|
},
|
|
);
|