Skip to content

Commit b78463a

Browse files
chore: update release script (#1913)
1 parent 544b06e commit b78463a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+24
-89
lines changed

.eslintrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
module.exports = {
22
root: true,
3+
reportUnusedDisableDirectives: true,
34
extends: ['eslint:recommended', 'plugin:node/recommended', 'plugin:prettier/recommended', 'prettier'],
45
parserOptions: { ecmaVersion: 2018, sourceType: 'script' },
56
plugins: ['node'],
7+
settings: {
8+
node: {
9+
allowModules: ['@webpack-cli/generators', '@webpack-cli/webpack-scaffold', '@webpack-cli/utils'],
10+
},
11+
},
612
env: {
713
node: true,
814
es6: true,

bin/utils/validate-options.js

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

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"name": "webpack-cli-monorepo",
3-
"version": "4.0.0-beta.9",
43
"description": "CLI for webpack & friends",
54
"license": "MIT",
65
"private": true,
@@ -41,7 +40,7 @@
4140
"test:ci": "yarn test:cli && yarn test:packages",
4241
"test:watch": "jest test/ packages/ --watch",
4342
"test:smoke": "smoketests/smoketests.sh",
44-
"publish:monorepo": "yarn build && lerna version prerelease --preid rc && lerna publish from-git --canary --preid rc --dist-tag next"
43+
"publish:monorepo": "yarn build && lerna version && lerna publish from-git"
4544
},
4645
"config": {
4746
"commitizen": {

packages/generators/__tests__/utils/entry.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ jest.setMock('@webpack-cli/webpack-scaffold', {
44
});
55

66
import { Input, InputValidate } from '@webpack-cli/webpack-scaffold';
7+
// eslint-disable-next-line node/no-missing-import
78
import entry from '../../lib/utils/entry';
89

910
describe('entry', () => {

packages/generators/__tests__/utils/languageSupport.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
// eslint-disable-next-line node/no-missing-import
12
import language, { LangType, getBabelLoader, getTypescriptLoader } from '../../lib/utils/languageSupport';
3+
// eslint-disable-next-line node/no-missing-import
24
import { CustomGenerator } from '../../lib/types';
35

46
// TODO: enable after jest release

packages/generators/__tests__/utils/plugins.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// eslint-disable-next-line node/no-missing-import
12
import { replaceAt, generatePluginName } from '../../lib/utils/plugins';
23

34
describe('generate plugin name', () => {

packages/generators/__tests__/utils/styleSupport.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
// eslint-disable-next-line node/no-missing-import
12
import style, { StylingType } from '../../lib/utils/styleSupport';
3+
// eslint-disable-next-line node/no-missing-import
24
import { CustomGenerator } from '../../lib/types';
35

46
// TODO: enable after jest release

packages/generators/templates/addon-package.json.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
21
module.exports = (name) => {
32
return {
43
version: '1.0.0',

packages/generators/templates/package.json.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
21
module.exports = (usingDefaults) => {
32
const scripts = {
43
build: 'webpack',

packages/migrate/src/commonsChunkPlugin/commonsChunkPlugin.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ export default function (j: JSCodeshift, ast: Node): Node {
170170
cacheGroup[chunkKey] = [];
171171
}
172172

173-
// eslint-disable-next-line
174173
cacheGroup[chunkKey] = cacheGroup[chunkKey].map((prop): string | void =>
175174
prop.key.name === 'test' ? mergeTestPropArrowFunction(j, chunkKey, pathValue) : prop,
176175
);

0 commit comments

Comments
 (0)