Move list feature into a separate package (#1239)

* wip

* fix build issues

* fix imports

* bump version
This commit is contained in:
Acy Watson
2022-02-08 12:33:10 -08:00
committed by acywatson
parent 73522824b6
commit 2020bbadd5
28 changed files with 827 additions and 705 deletions

View File

@ -41,11 +41,13 @@ if (isClean) {
fs.removeSync(path.resolve('./packages/lexical/dist'));
fs.removeSync(path.resolve('./packages/lexical-react/dist'));
fs.removeSync(path.resolve('./packages/lexical-helpers/dist'));
fs.removeSync(path.resolve('./packages/lexical-list/dist'));
fs.removeSync(path.resolve('./packages/lexical-yjs/dist'));
}
const wwwMappings = {
lexical: 'Lexical',
'lexical-list': 'LexicalList',
'react-dom': 'ReactDOMComet',
'@lexical/yjs': 'LexicalYjs',
};
@ -90,6 +92,7 @@ const externals = [
// modules that use Stylex to www (the babel plugin on www
// is different to that of the OSS version).
'lexical',
'@lexical/list',
'@lexical/yjs',
'react-dom',
'react',
@ -307,6 +310,12 @@ build(
path.resolve(`./packages/lexical/dist/${getFileName('Lexical')}`),
);
build(
'Lexical List',
path.resolve('./packages/lexical-list/src/index.js'),
path.resolve(`./packages/lexical-list/dist/${getFileName('LexicalList')}`),
);
lexicalNodes.forEach((module) => {
build(
`Lexical Core Nodes - ${module}`,