Skip to content

Commit 5d67ea9

Browse files
committed
Clean up old code
1 parent c318ca2 commit 5d67ea9

File tree

13 files changed

+6
-185
lines changed

13 files changed

+6
-185
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"start": "lerna run build:i18n && start-storybook -p 6006 -c .storybook",
99
"build": "yarn clean && lerna run build --stream && node ./scripts/rollup/build.js",
1010
"build:storybook": "lerna run build:i18n && build-storybook -c .storybook -o .out",
11-
"pretest": "node scripts/test/clean.js && lerna run build:i18n",
11+
"pretest": "rimraf coverage && lerna run build:i18n",
1212
"test": "jest --config=config/jest.config.js --coverage",
1313
"clean": "lerna run clean --stream && rimraf coverage",
1414
"postversion": "node ./scripts/postversion/index.js",

packages/base/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const rollupConfigFactory = require('../../shared/rollup/configFactory');
1+
const rollupConfigFactory = require('../../scripts/rollup/configFactory');
22

33
const config = rollupConfigFactory('base');
44
module.exports = config;

packages/charts/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const rollupConfigFactory = require('../../shared/rollup/configFactory');
1+
const rollupConfigFactory = require('../../scripts/rollup/configFactory');
22

33
const config = rollupConfigFactory('charts', ['@ui5/webcomponents', '@ui5/webcomponents-base', 'lodash', 'classnames']);
44
module.exports = config;

packages/main/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
const rollupConfigFactory = require('../../shared/rollup/configFactory');
1+
const rollupConfigFactory = require('../../scripts/rollup/configFactory');
22

33
module.exports = rollupConfigFactory('main', ['@ui5/webcomponents-base']);

packages/main/src/internal/withWebComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,5 +134,5 @@ export const withWebComponent = <T extends {}>(
134134

135135
WithWebComponent.displayName = `WithWebComponent(${TagName})`;
136136

137-
return WithWebComponent as RefForwardingComponent<Ui5DomRef, T & WithWebComponentPropTypes>;
137+
return (WithWebComponent as unknown) as RefForwardingComponent<Ui5DomRef, T & WithWebComponentPropTypes>;
138138
};

scripts/prettier/index.js

Lines changed: 0 additions & 77 deletions
This file was deleted.

shared/rollup/configFactory.js renamed to scripts/rollup/configFactory.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ const fs = require('fs');
66
const json = require('@rollup/plugin-json');
77
const micromatch = require('micromatch');
88
const PATHS = require('../../config/paths');
9-
const { highlightLog } = require('../utils');
10-
const { asyncCopyTo } = require('../../scripts/utils');
9+
const { asyncCopyTo, highlightLog } = require('../utils');
1110
const glob = require('glob');
1211

1312
process.env.BABEL_ENV = 'production';

scripts/shared/fileAccess.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

scripts/shared/listChangedFiles.js

Lines changed: 0 additions & 36 deletions
This file was deleted.

scripts/start.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

scripts/test/clean.js

Lines changed: 0 additions & 4 deletions
This file was deleted.

scripts/test/renameJestFile.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

shared/utils.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)