jiek 2.2.3-alpha.1 → 2.2.3-alpha.3

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.
@@ -119,7 +119,7 @@ async function getSelectedProjectsGraph(filter = commander.program.getOptionValu
119
119
 
120
120
  var name = "jiek";
121
121
  var type = "module";
122
- var version = "2.2.3";
122
+ var version = "2.2.3-alpha.2";
123
123
  var description$1 = "A lightweight toolkit for compiling and managing libraries based on `package.json` metadata and suitable for `Monorepo`.";
124
124
  var author = "YiJie <yijie4188@gmail.com>";
125
125
  var homepage = "https://github.com/NWYLZW/jiek/tree/master/packages/jiek#readme";
@@ -188,7 +188,7 @@ var peerDependencies = {
188
188
  "vite-bundle-analyzer": "0.16.0-beta.1"
189
189
  };
190
190
  var dependencies = {
191
- "@inquirer/prompts": "^7.1.0",
191
+ "@inquirer/prompts": "^7.2.0",
192
192
  "@jiek/pkger": "workspace:^",
193
193
  "@jiek/rollup-plugin-dts": "^6.2.1",
194
194
  "@jiek/utils": "workspace:^",
@@ -690,13 +690,8 @@ command.action(async (commandFiltersOrEntries, options) => {
690
690
  minifyType = resolvedType;
691
691
  }
692
692
  }
693
- if (!withoutMin) {
694
- await checkDependency(
695
- {
696
- ...BUILDER_TYPE_PACKAGE_NAME_MAP,
697
- terser: "@rollup/plugin-terser"
698
- }[resolvedType]
699
- );
693
+ if (!withoutMin && minifyType === "terser") {
694
+ await checkDependency("@rollup/plugin-terser");
700
695
  }
701
696
  let shouldPassThrough = false;
702
697
  const passThroughOptions = process__default.default.argv.reduce(
@@ -109,7 +109,7 @@ async function getSelectedProjectsGraph(filter = program.getOptionValue("filter"
109
109
 
110
110
  var name = "jiek";
111
111
  var type = "module";
112
- var version = "2.2.3";
112
+ var version = "2.2.3-alpha.2";
113
113
  var description$1 = "A lightweight toolkit for compiling and managing libraries based on `package.json` metadata and suitable for `Monorepo`.";
114
114
  var author = "YiJie <yijie4188@gmail.com>";
115
115
  var homepage = "https://github.com/NWYLZW/jiek/tree/master/packages/jiek#readme";
@@ -178,7 +178,7 @@ var peerDependencies = {
178
178
  "vite-bundle-analyzer": "0.16.0-beta.1"
179
179
  };
180
180
  var dependencies = {
181
- "@inquirer/prompts": "^7.1.0",
181
+ "@inquirer/prompts": "^7.2.0",
182
182
  "@jiek/pkger": "workspace:^",
183
183
  "@jiek/rollup-plugin-dts": "^6.2.1",
184
184
  "@jiek/utils": "workspace:^",
@@ -680,13 +680,8 @@ command.action(async (commandFiltersOrEntries, options) => {
680
680
  minifyType = resolvedType;
681
681
  }
682
682
  }
683
- if (!withoutMin) {
684
- await checkDependency(
685
- {
686
- ...BUILDER_TYPE_PACKAGE_NAME_MAP,
687
- terser: "@rollup/plugin-terser"
688
- }[resolvedType]
689
- );
683
+ if (!withoutMin && minifyType === "terser") {
684
+ await checkDependency("@rollup/plugin-terser");
690
685
  }
691
686
  let shouldPassThrough = false;
692
687
  const passThroughOptions = process$1.argv.reduce(
@@ -4850,6 +4850,12 @@ const generateConfigs = (context, options = {}) => {
4850
4850
  ...noTypeResolvedBuilderOptions,
4851
4851
  jsc: {
4852
4852
  ...resolvedBuilderOptions.jsc,
4853
+ parser: resolvedBuilderOptions.jsc?.parser ? resolvedBuilderOptions.jsc?.parser : {
4854
+ syntax: "typescript",
4855
+ tsx: true,
4856
+ decorators: true,
4857
+ dynamicImport: true
4858
+ },
4853
4859
  experimental: {
4854
4860
  ...resolvedBuilderOptions.jsc?.experimental,
4855
4861
  keepImportAttributes: features.keepImportAttributes !== false
@@ -4971,7 +4977,6 @@ function template(packageJSON) {
4971
4977
  }
4972
4978
  return false;
4973
4979
  });
4974
- console.log(exports);
4975
4980
  const configs = [];
4976
4981
  leafMap.forEach(
4977
4982
  (keysArr, input) => keysArr.forEach((keys) => {
@@ -4834,6 +4834,12 @@ const generateConfigs = (context, options = {}) => {
4834
4834
  ...noTypeResolvedBuilderOptions,
4835
4835
  jsc: {
4836
4836
  ...resolvedBuilderOptions.jsc,
4837
+ parser: resolvedBuilderOptions.jsc?.parser ? resolvedBuilderOptions.jsc?.parser : {
4838
+ syntax: "typescript",
4839
+ tsx: true,
4840
+ decorators: true,
4841
+ dynamicImport: true
4842
+ },
4837
4843
  experimental: {
4838
4844
  ...resolvedBuilderOptions.jsc?.experimental,
4839
4845
  keepImportAttributes: features.keepImportAttributes !== false
@@ -4955,7 +4961,6 @@ function template(packageJSON) {
4955
4961
  }
4956
4962
  return false;
4957
4963
  });
4958
- console.log(exports);
4959
4964
  const configs = [];
4960
4965
  leafMap.forEach(
4961
4966
  (keysArr, input) => keysArr.forEach((keys) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jiek",
3
3
  "type": "module",
4
- "version": "2.2.3-alpha.1",
4
+ "version": "2.2.3-alpha.3",
5
5
  "description": "A lightweight toolkit for compiling and managing libraries based on `package.json` metadata and suitable for `Monorepo`.",
6
6
  "author": "YiJie <yijie4188@gmail.com>",
7
7
  "homepage": "https://github.com/NWYLZW/jiek/tree/master/packages/jiek#readme",
@@ -72,7 +72,7 @@
72
72
  "vite-bundle-analyzer": "0.16.0-beta.1"
73
73
  },
74
74
  "dependencies": {
75
- "@inquirer/prompts": "^7.1.0",
75
+ "@inquirer/prompts": "^7.2.0",
76
76
  "@jiek/rollup-plugin-dts": "^6.2.1",
77
77
  "@rollup/plugin-commonjs": "^28.0.0",
78
78
  "@rollup/plugin-inject": "^5.0.5",
@@ -214,13 +214,8 @@ command
214
214
  minifyType = resolvedType
215
215
  }
216
216
  }
217
- if (!withoutMin) {
218
- await checkDependency(
219
- {
220
- ...BUILDER_TYPE_PACKAGE_NAME_MAP,
221
- terser: '@rollup/plugin-terser'
222
- }[resolvedType]
223
- )
217
+ if (!withoutMin && minifyType === 'terser') {
218
+ await checkDependency('@rollup/plugin-terser')
224
219
  }
225
220
  let shouldPassThrough = false
226
221
 
@@ -420,6 +420,14 @@ const generateConfigs = (context: ConfigGenerateContext, options: TemplateOption
420
420
  ...noTypeResolvedBuilderOptions,
421
421
  jsc: {
422
422
  ...resolvedBuilderOptions.jsc,
423
+ parser: resolvedBuilderOptions.jsc?.parser
424
+ ? resolvedBuilderOptions.jsc?.parser
425
+ : {
426
+ syntax: 'typescript',
427
+ tsx: true,
428
+ decorators: true,
429
+ dynamicImport: true
430
+ },
423
431
  experimental: {
424
432
  ...resolvedBuilderOptions.jsc?.experimental,
425
433
  keepImportAttributes: features.keepImportAttributes !== false
@@ -578,7 +586,7 @@ export function template(packageJSON: PackageJSON): RollupOptions[] {
578
586
  return false
579
587
  })
580
588
 
581
- console.log(exports)
589
+ // console.log(exports)
582
590
  const configs: RollupOptions[] = []
583
591
  leafMap.forEach((keysArr, input) =>
584
592
  keysArr.forEach((keys) => {