@modern-js/utils 1.1.6-alpha.0 → 1.1.6-rc.0

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @modern-js/utils
2
2
 
3
+ ## 1.1.6-rc.0
4
+
5
+ ### Patch Changes
6
+
7
+ - b7fb82ec: fix: get package manager function
8
+
3
9
  ## 1.1.5
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.1.6-alpha.0",
14
+ "version": "1.1.6-rc.0",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -66,8 +66,8 @@
66
66
  "@types/recursive-readdir": "^2.2.0",
67
67
  "typescript": "^4",
68
68
  "webpack": "^5.54.0",
69
- "@modern-js/plugin-testing": "^1.2.0",
70
- "@modern-js/module-tools": "^1.1.3"
69
+ "@modern-js/plugin-testing": "^1.2.2",
70
+ "@modern-js/module-tools": "^1.1.4"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "typescript": "^4.4.3"
@@ -81,5 +81,6 @@
81
81
  "new": "modern new",
82
82
  "build": "modern build",
83
83
  "test": "modern test --passWithNoTests"
84
- }
84
+ },
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"
85
86
  }
@@ -0,0 +1,16 @@
1
+ import { canUseNpm, canUsePnpm, canUseYarn } from '@/index';
2
+
3
+ describe('test generator utils', () => {
4
+ test('test canUseNpm', async () => {
5
+ const npmAbility = await canUseNpm();
6
+ expect(typeof npmAbility === 'boolean').toBe(true);
7
+ });
8
+ test('test canUsePnpm', async () => {
9
+ const pnpmAbility = await canUsePnpm();
10
+ expect(typeof pnpmAbility === 'boolean').toBe(true);
11
+ });
12
+ test('test canUseYarn', async () => {
13
+ const yarnAbility = await canUseYarn();
14
+ expect(typeof yarnAbility === 'boolean').toBe(true);
15
+ });
16
+ });