Skip to content

Commit

Permalink
refactor: package reform
Browse files Browse the repository at this point in the history
BREAKING CHANGE
  • Loading branch information
nolanlawson committed Apr 11, 2023
1 parent f09569e commit 2d866c9
Show file tree
Hide file tree
Showing 40 changed files with 180 additions and 497 deletions.
41 changes: 0 additions & 41 deletions packages/@lwc/aria-reflection/scripts/rollup.config.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/@lwc/aria-reflection/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"extends": "../../../tsconfig.json",

"compilerOptions": {
"outDir": ".",
"lib": ["dom", "es2018"]
},

Expand Down
41 changes: 0 additions & 41 deletions packages/@lwc/babel-plugin-component/scripts/rollup.config.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/@lwc/babel-plugin-component/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"extends": "../../../tsconfig.json",

"compilerOptions": {
"outDir": ".",
"lib": ["es2018"]
},

Expand Down
7 changes: 1 addition & 6 deletions packages/@lwc/compiler/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
{
"extends": "../../../tsconfig.json",

"compilerOptions": {
"outDir": "dist/commonjs",
"declarationDir": "dist/types"
},

"include": ["src/", "typings/"]
"include": ["src/"]
}
50 changes: 0 additions & 50 deletions packages/@lwc/engine-core/scripts/rollup.config.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/@lwc/engine-core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"extends": "../../../tsconfig.json",

"compilerOptions": {
"outDir": ".",
"lib": ["dom", "es2018"]
},

Expand Down
3 changes: 1 addition & 2 deletions packages/@lwc/engine-dom/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
"extends": "../../../tsconfig.json",

"compilerOptions": {
"outDir": ".",
"lib": ["dom", "es2018"]
},

"include": ["src/", "typings/"]
"include": ["src/"]
}
51 changes: 0 additions & 51 deletions packages/@lwc/engine-server/scripts/rollup.config.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/@lwc/engine-server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"extends": "../../../tsconfig.json",

"compilerOptions": {
"outDir": ".",
"lib": ["dom", "es2018"]
},

Expand Down
5 changes: 0 additions & 5 deletions packages/@lwc/errors/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
{
"extends": "../../../tsconfig.json",

"compilerOptions": {
"outDir": "dist/commonjs",
"declarationDir": "dist/types"
},

"include": ["src/"]
}
42 changes: 0 additions & 42 deletions packages/@lwc/features/scripts/rollup/rollup.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/@lwc/features/src/__tests__/features.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/

import features from '../flags';
import features from '../index';

describe('features', () => {
it('known flags in the features map are null', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/

import { lwcRuntimeFlags } from '../flags';
import { lwcRuntimeFlags } from '../index';

describe('lwcRuntimeFlags', () => {
it('known flags default to undefined', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/

import { lwcRuntimeFlags, setFeatureFlag } from '../flags';
import { lwcRuntimeFlags, setFeatureFlag } from '../index';

describe('setFeatureFlag', () => {
['development', 'production'].forEach((env) => {
Expand Down
File renamed without changes.
2 changes: 0 additions & 2 deletions packages/@lwc/features/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
"extends": "../../../tsconfig.json",

"compilerOptions": {
"baseUrl": ".",
"outDir": ".",
"lib": ["dom", "es2018"]
},

Expand Down
8 changes: 1 addition & 7 deletions packages/@lwc/module-resolver/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
{
"extends": "../../../tsconfig.json",

"compilerOptions": {
"outDir": "dist/commonjs",
"declarationDir": "dist/types"
},

"include": ["src/"],
"exclude": ["**/__tests__"]
"include": ["src/"]
}
6 changes: 1 addition & 5 deletions packages/@lwc/rollup-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@ export interface RollupLwcOptions {

const PLUGIN_NAME = 'rollup-plugin-lwc-compiler';

const DEFAULT_MODULES = [
{ npm: '@lwc/engine-dom' },
{ npm: '@lwc/synthetic-shadow' },
{ npm: '@lwc/wire-service' },
];
const DEFAULT_MODULES = [{ npm: '@lwc/engine-dom' }];

const IMPLICIT_DEFAULT_HTML_PATH = '@lwc/resources/empty_html.js';
const EMPTY_IMPLICIT_HTML_CONTENT = 'export default void 0';
Expand Down
5 changes: 0 additions & 5 deletions packages/@lwc/rollup-plugin/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
{
"extends": "../../../tsconfig.json",

"compilerOptions": {
"outDir": "dist/commonjs",
"declarationDir": "dist/types"
},

"include": ["src/"]
}
Loading

0 comments on commit 2d866c9

Please sign in to comment.