@modern-js/plugin-changeset 1.2.4 → 1.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,47 @@
1
1
  # @modern-js/plugin-changeset
2
2
 
3
+ ## 1.2.7
4
+
5
+ ### Patch Changes
6
+
7
+ - d32f35134: chore: add modern/jest/eslint/ts config files to .npmignore
8
+ - Updated dependencies [d32f35134]
9
+ - Updated dependencies [6ae4a34ae]
10
+ - Updated dependencies [b80229c79]
11
+ - Updated dependencies [948cc4436]
12
+ - @modern-js/i18n-cli-language-detector@1.2.3
13
+ - @modern-js/plugin-i18n@1.2.6
14
+ - @modern-js/utils@1.7.3
15
+
16
+ ## 1.2.6
17
+
18
+ ### Patch Changes
19
+
20
+ - 69a728375: fix: remove exports.jsnext:source after publish
21
+ - Updated dependencies [cd7346b0d]
22
+ - Updated dependencies [69a728375]
23
+ - @modern-js/utils@1.7.2
24
+ - @modern-js/plugin-i18n@1.2.5
25
+
26
+ ## 1.2.5
27
+
28
+ ### Patch Changes
29
+
30
+ - 6cffe99d: chore:
31
+ remove react eslint rules for `modern-js` rule set.
32
+ add .eslintrc for each package to speed up linting
33
+ - 04ae5262: chore: bump @modern-js/utils to v1.4.1 in dependencies
34
+ - 60f7d8bf: feat: add tests dir to npmignore
35
+ - 5dbbeb57: fix: export extended Command type
36
+ - Updated dependencies [b8599d09]
37
+ - Updated dependencies [6cffe99d]
38
+ - Updated dependencies [04ae5262]
39
+ - Updated dependencies [60f7d8bf]
40
+ - Updated dependencies [3bf4f8b0]
41
+ - @modern-js/utils@1.5.0
42
+ - @modern-js/i18n-cli-language-detector@1.2.2
43
+ - @modern-js/plugin-i18n@1.2.4
44
+
3
45
  ## 1.2.4
4
46
 
5
47
  ### Patch Changes
@@ -2,7 +2,6 @@ import path from 'path';
2
2
  import { getPackageManager, isModernjsMonorepo, fs } from '@modern-js/utils';
3
3
  import { tag as gitTag } from '@changesets/git';
4
4
  import { CHANGESET_PATH, execaWithStreamLog } from "../utils";
5
- // eslint-disable-next-line max-statements
6
5
  export async function release(options) {
7
6
  const appDir = process.cwd();
8
7
  const isMonorepo = isModernjsMonorepo(appDir);
@@ -1,4 +1,4 @@
1
- import execa from 'execa';
1
+ import { execa } from '@modern-js/utils';
2
2
  export const CHANGESET_PATH = require.resolve('@changesets/cli');
3
3
  export function execaWithStreamLog(command, args) {
4
4
  const promise = execa(command, args, {
@@ -15,7 +15,6 @@ var _utils2 = require("../utils");
15
15
 
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
 
18
- // eslint-disable-next-line max-statements
19
18
  async function release(options) {
20
19
  const appDir = process.cwd();
21
20
  const isMonorepo = (0, _utils.isModernjsMonorepo)(appDir);
@@ -6,16 +6,14 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.CHANGESET_PATH = void 0;
7
7
  exports.execaWithStreamLog = execaWithStreamLog;
8
8
 
9
- var _execa = _interopRequireDefault(require("execa"));
10
-
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
+ var _utils = require("@modern-js/utils");
12
10
 
13
11
  const CHANGESET_PATH = require.resolve('@changesets/cli');
14
12
 
15
13
  exports.CHANGESET_PATH = CHANGESET_PATH;
16
14
 
17
15
  function execaWithStreamLog(command, args) {
18
- const promise = (0, _execa.default)(command, args, {
16
+ const promise = (0, _utils.execa)(command, args, {
19
17
  stdin: 'inherit',
20
18
  stdout: 'inherit',
21
19
  stderr: 'inherit'
@@ -1,3 +1,3 @@
1
- import execa from 'execa';
1
+ import { execa } from '@modern-js/utils';
2
2
  export declare const CHANGESET_PATH: string;
3
3
  export declare function execaWithStreamLog(command: string, args: string[]): execa.ExecaChildProcess<string>;
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.2.4",
14
+ "version": "1.2.7",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -35,15 +35,15 @@
35
35
  "@babel/runtime": "^7",
36
36
  "@changesets/cli": "2.16.0",
37
37
  "@changesets/git": "^1.1.2",
38
- "@modern-js/i18n-cli-language-detector": "^1.2.1",
39
- "@modern-js/plugin-i18n": "^1.2.1",
40
- "@modern-js/utils": "^1.3.7",
38
+ "@modern-js/i18n-cli-language-detector": "^1.2.3",
39
+ "@modern-js/plugin-i18n": "^1.2.6",
40
+ "@modern-js/utils": "^1.7.3",
41
41
  "execa": "^5.1.1"
42
42
  },
43
43
  "devDependencies": {
44
- "@modern-js/core": "1.6.1",
44
+ "@modern-js/core": "1.10.2",
45
45
  "@scripts/build": "0.0.0",
46
- "@types/jest": "^26",
46
+ "@types/jest": "^27",
47
47
  "@types/node": "^14",
48
48
  "typescript": "^4",
49
49
  "jest": "^27",
@@ -54,11 +54,33 @@
54
54
  "registry": "https://registry.npmjs.org/",
55
55
  "access": "public"
56
56
  },
57
+ "wireit": {
58
+ "build": {
59
+ "command": "modern build",
60
+ "files": [
61
+ "src/**/*",
62
+ "tsconfig.json",
63
+ "package.json"
64
+ ],
65
+ "output": [
66
+ "dist/**/*"
67
+ ]
68
+ },
69
+ "test": {
70
+ "command": "jest --passWithNoTests",
71
+ "files": [
72
+ "src/**/*",
73
+ "tsconfig.json",
74
+ "package.json"
75
+ ],
76
+ "output": []
77
+ }
78
+ },
57
79
  "scripts": {
58
80
  "new": "modern new",
59
81
  "dev": "modern build --watch",
60
- "build": "modern build",
61
- "test": "jest --passWithNoTests"
82
+ "build": "wireit",
83
+ "test": "wireit"
62
84
  },
63
85
  "readme": "\n<p align=\"center\">\n <a href=\"https://modernjs.dev\" target=\"blank\"><img src=\"https://lf3-static.bytednsdoc.com/obj/eden-cn/ylaelkeh7nuhfnuhf/modernjs-cover.png\" width=\"300\" alt=\"Modern.js Logo\" /></a>\n</p>\n<p align=\"center\">\n现代 Web 工程体系\n <br/>\n <a href=\"https://modernjs.dev\" target=\"blank\">\n modernjs.dev\n </a>\n</p>\n<p align=\"center\">\n The meta-framework suite designed from scratch for frontend-focused modern web development\n</p>\n\n# Introduction\n\n> The doc site ([modernjs.dev](https://modernjs.dev)) and articles are only available in Chinese for now, we are planning to add English versions soon.\n\n- [Modern.js: Hello, World!](https://zhuanlan.zhihu.com/p/426707646)\n\n## Getting Started\n\n- [Quick Start](https://modernjs.dev/docs/start)\n- [Guides](https://modernjs.dev/docs/guides)\n- [API References](https://modernjs.dev/docs/apis)\n\n## Contributing\n\n- [Contributing Guide](https://github.com/modern-js-dev/modern.js/blob/main/CONTRIBUTING.md)\n"
64
86
  }
package/jest.config.js DELETED
@@ -1,7 +0,0 @@
1
- const sharedConfig = require('@scripts/jest-config');
2
-
3
- /** @type {import('@jest/types').Config.InitialOptions} */
4
- module.exports = {
5
- ...sharedConfig,
6
- rootDir: __dirname,
7
- };
package/modern.config.js DELETED
@@ -1,6 +0,0 @@
1
- /** @type {import('@modern-js/module-tools').UserConfig} */
2
- module.exports = {
3
- output: {
4
- packageMode: 'node-js',
5
- },
6
- };
@@ -1,7 +0,0 @@
1
- import plugin from '../src';
2
-
3
- describe('plugin-changeset', () => {
4
- it('default', () => {
5
- expect(plugin).toBeDefined();
6
- });
7
- });
@@ -1,13 +0,0 @@
1
- {
2
- "extends": "@modern-js/tsconfig/base",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "jsx": "preserve",
6
- "baseUrl": "./",
7
- "outDir": "./out",
8
- "emitDeclarationOnly": true,
9
- "isolatedModules": true,
10
- "paths": {},
11
- "types": ["node", "jest"]
12
- }
13
- }
package/tsconfig.json DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "extends": "@modern-js/tsconfig/base",
3
- "compilerOptions": {
4
- "declaration": false,
5
- "jsx": "preserve",
6
- "baseUrl": "./",
7
- "isolatedModules": true,
8
- "paths": {}
9
- },
10
- "include": ["src"]
11
- }