@powerlines/plugin-tsdown 0.1.75 → 0.1.76

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.
@@ -1,4 +1,4 @@
1
- const require_unplugin = require('../unplugin-CkInBCQX.cjs');
1
+ const require_unplugin = require('../unplugin-D5OxWc6M.cjs');
2
2
  require('../helpers-LF26RHol.cjs');
3
3
 
4
4
  exports.createTsdownPlugin = require_unplugin.createTsdownPlugin;
@@ -1,4 +1,4 @@
1
- import "../plugin-Bh65OO11.cjs";
2
- import { t as createTsdownPlugin } from "../unplugin-DyxNwfan.cjs";
1
+ import "../plugin-Dw2Yyxv8.cjs";
2
+ import { t as createTsdownPlugin } from "../unplugin-BFA4Wki8.cjs";
3
3
  import "../index-D6CnpA_r.cjs";
4
4
  export { createTsdownPlugin };
@@ -1,4 +1,4 @@
1
- import "../plugin-DnzEhAC7.mjs";
2
- import { t as createTsdownPlugin } from "../unplugin-BxNntd0I.mjs";
1
+ import "../plugin-Bon2U6FJ.mjs";
2
+ import { t as createTsdownPlugin } from "../unplugin-DkLP9w8V.mjs";
3
3
  import "../index-DL0uimUT.mjs";
4
4
  export { createTsdownPlugin };
@@ -1,4 +1,4 @@
1
- import { t as createTsdownPlugin } from "../unplugin-1lE_z2lE.mjs";
1
+ import { t as createTsdownPlugin } from "../unplugin-DXS3Sohh.mjs";
2
2
  import "../helpers-B15z10jN.mjs";
3
3
 
4
4
  export { createTsdownPlugin };
@@ -1,3 +1,3 @@
1
- const require_unplugin = require('../unplugin-CkInBCQX.cjs');
1
+ const require_unplugin = require('../unplugin-D5OxWc6M.cjs');
2
2
 
3
3
  exports.createTsdownPlugin = require_unplugin.createTsdownPlugin;
@@ -1,3 +1,3 @@
1
- import "../plugin-Bh65OO11.cjs";
2
- import { t as createTsdownPlugin } from "../unplugin-DyxNwfan.cjs";
1
+ import "../plugin-Dw2Yyxv8.cjs";
2
+ import { t as createTsdownPlugin } from "../unplugin-BFA4Wki8.cjs";
3
3
  export { createTsdownPlugin };
@@ -1,3 +1,3 @@
1
- import "../plugin-DnzEhAC7.mjs";
2
- import { t as createTsdownPlugin } from "../unplugin-BxNntd0I.mjs";
1
+ import "../plugin-Bon2U6FJ.mjs";
2
+ import { t as createTsdownPlugin } from "../unplugin-DkLP9w8V.mjs";
3
3
  export { createTsdownPlugin };
@@ -1,3 +1,3 @@
1
- import { t as createTsdownPlugin } from "../unplugin-1lE_z2lE.mjs";
1
+ import { t as createTsdownPlugin } from "../unplugin-DXS3Sohh.mjs";
2
2
 
3
3
  export { createTsdownPlugin };
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
- const require_unplugin = require('./unplugin-CkInBCQX.cjs');
2
+ const require_unplugin = require('./unplugin-D5OxWc6M.cjs');
3
3
  require('./helpers-LF26RHol.cjs');
4
4
  require('./plugin-pBKbb5K9.cjs');
5
5
  require('./types-o3zWarRp.cjs');
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as __ΩTsdownPluginContext, c as __ΩTsdownPluginUserConfig, i as TsdownPluginUserConfig, l as Plugin, n as TsdownPluginOptions, o as __ΩTsdownPluginOptions, r as TsdownPluginResolvedConfig, s as __ΩTsdownPluginResolvedConfig, t as TsdownPluginContext } from "./plugin-Bh65OO11.cjs";
2
- import { t as createTsdownPlugin } from "./unplugin-DyxNwfan.cjs";
1
+ import { a as __ΩTsdownPluginContext, c as __ΩTsdownPluginUserConfig, i as TsdownPluginUserConfig, l as Plugin, n as TsdownPluginOptions, o as __ΩTsdownPluginOptions, r as TsdownPluginResolvedConfig, s as __ΩTsdownPluginResolvedConfig, t as TsdownPluginContext } from "./plugin-Dw2Yyxv8.cjs";
2
+ import { t as createTsdownPlugin } from "./unplugin-BFA4Wki8.cjs";
3
3
  import "./index-D6CnpA_r.cjs";
4
4
  import "./index-D4ELpJXS.cjs";
5
5
 
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as __ΩTsdownPluginContext, c as __ΩTsdownPluginUserConfig, i as TsdownPluginUserConfig, l as Plugin, n as TsdownPluginOptions, o as __ΩTsdownPluginOptions, r as TsdownPluginResolvedConfig, s as __ΩTsdownPluginResolvedConfig, t as TsdownPluginContext } from "./plugin-DnzEhAC7.mjs";
2
- import { t as createTsdownPlugin } from "./unplugin-BxNntd0I.mjs";
1
+ import { a as __ΩTsdownPluginContext, c as __ΩTsdownPluginUserConfig, i as TsdownPluginUserConfig, l as Plugin, n as TsdownPluginOptions, o as __ΩTsdownPluginOptions, r as TsdownPluginResolvedConfig, s as __ΩTsdownPluginResolvedConfig, t as TsdownPluginContext } from "./plugin-Bon2U6FJ.mjs";
2
+ import { t as createTsdownPlugin } from "./unplugin-DkLP9w8V.mjs";
3
3
  import "./index-DL0uimUT.mjs";
4
4
  import "./index-9iG2qHLe.mjs";
5
5
 
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as createTsdownPlugin } from "./unplugin-1lE_z2lE.mjs";
1
+ import { t as createTsdownPlugin } from "./unplugin-DXS3Sohh.mjs";
2
2
  import "./helpers-B15z10jN.mjs";
3
3
  import "./plugin-ifZVa20V.mjs";
4
4
  import "./types-U3zd8PTP.mjs";
@@ -681,7 +681,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage"> &
681
681
  /**
682
682
  * The resolved options for the Powerlines project configuration.
683
683
  */
684
- type ResolvedConfig$1<TUserConfig extends UserConfig$1 = UserConfig$1> = Omit<TUserConfig, "name" | "title" | "compatibilityDate" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework" | "sourceRoot"> & Required<Pick<TUserConfig, "name" | "title" | "compatibilityDate" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework" | "sourceRoot">> & {
684
+ type ResolvedConfig$1<TUserConfig extends UserConfig$1 = UserConfig$1> = Omit<TUserConfig, "name" | "title" | "organization" | "compatibilityDate" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework" | "sourceRoot"> & Required<Pick<TUserConfig, "name" | "title" | "organization" | "compatibilityDate" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework" | "sourceRoot">> & {
685
685
  /**
686
686
  * The configuration options that were provided inline to the Powerlines CLI.
687
687
  */
@@ -1625,6 +1625,13 @@ interface CommonUserConfig extends BaseConfig {
1625
1625
  * If this option is not provided, the build process will try to use the \`description\` value from the `\package.json\` file.
1626
1626
  */
1627
1627
  description?: string;
1628
+ /**
1629
+ * The organization or author of the project
1630
+ *
1631
+ * @remarks
1632
+ * If this option is not provided, the build process will try to use the \`author\` value from the \`package.json\` file. If the \`author\` value cannot be determined, the {@link name | name configuration} will be used.
1633
+ */
1634
+ organization?: string;
1628
1635
  /**
1629
1636
  * The date to use for compatibility checks
1630
1637
  *
@@ -679,7 +679,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage"> &
679
679
  /**
680
680
  * The resolved options for the Powerlines project configuration.
681
681
  */
682
- type ResolvedConfig$1<TUserConfig extends UserConfig$1 = UserConfig$1> = Omit<TUserConfig, "name" | "title" | "compatibilityDate" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework" | "sourceRoot"> & Required<Pick<TUserConfig, "name" | "title" | "compatibilityDate" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework" | "sourceRoot">> & {
682
+ type ResolvedConfig$1<TUserConfig extends UserConfig$1 = UserConfig$1> = Omit<TUserConfig, "name" | "title" | "organization" | "compatibilityDate" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework" | "sourceRoot"> & Required<Pick<TUserConfig, "name" | "title" | "organization" | "compatibilityDate" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework" | "sourceRoot">> & {
683
683
  /**
684
684
  * The configuration options that were provided inline to the Powerlines CLI.
685
685
  */
@@ -1623,6 +1623,13 @@ interface CommonUserConfig extends BaseConfig {
1623
1623
  * If this option is not provided, the build process will try to use the \`description\` value from the `\package.json\` file.
1624
1624
  */
1625
1625
  description?: string;
1626
+ /**
1627
+ * The organization or author of the project
1628
+ *
1629
+ * @remarks
1630
+ * If this option is not provided, the build process will try to use the \`author\` value from the \`package.json\` file. If the \`author\` value cannot be determined, the {@link name | name configuration} will be used.
1631
+ */
1632
+ organization?: string;
1626
1633
  /**
1627
1634
  * The date to use for compatibility checks
1628
1635
  *
@@ -1,3 +1,3 @@
1
- import { a as __ΩTsdownPluginContext, c as __ΩTsdownPluginUserConfig, i as TsdownPluginUserConfig, n as TsdownPluginOptions, o as __ΩTsdownPluginOptions, r as TsdownPluginResolvedConfig, s as __ΩTsdownPluginResolvedConfig, t as TsdownPluginContext } from "../plugin-Bh65OO11.cjs";
1
+ import { a as __ΩTsdownPluginContext, c as __ΩTsdownPluginUserConfig, i as TsdownPluginUserConfig, n as TsdownPluginOptions, o as __ΩTsdownPluginOptions, r as TsdownPluginResolvedConfig, s as __ΩTsdownPluginResolvedConfig, t as TsdownPluginContext } from "../plugin-Dw2Yyxv8.cjs";
2
2
  import "../index-D4ELpJXS.cjs";
3
3
  export { TsdownPluginContext, TsdownPluginOptions, TsdownPluginResolvedConfig, TsdownPluginUserConfig, __ΩTsdownPluginContext, __ΩTsdownPluginOptions, __ΩTsdownPluginResolvedConfig, __ΩTsdownPluginUserConfig };
@@ -1,3 +1,3 @@
1
- import { a as __ΩTsdownPluginContext, c as __ΩTsdownPluginUserConfig, i as TsdownPluginUserConfig, n as TsdownPluginOptions, o as __ΩTsdownPluginOptions, r as TsdownPluginResolvedConfig, s as __ΩTsdownPluginResolvedConfig, t as TsdownPluginContext } from "../plugin-DnzEhAC7.mjs";
1
+ import { a as __ΩTsdownPluginContext, c as __ΩTsdownPluginUserConfig, i as TsdownPluginUserConfig, n as TsdownPluginOptions, o as __ΩTsdownPluginOptions, r as TsdownPluginResolvedConfig, s as __ΩTsdownPluginResolvedConfig, t as TsdownPluginContext } from "../plugin-Bon2U6FJ.mjs";
2
2
  import "../index-9iG2qHLe.mjs";
3
3
  export { TsdownPluginContext, TsdownPluginOptions, TsdownPluginResolvedConfig, TsdownPluginUserConfig, __ΩTsdownPluginContext, __ΩTsdownPluginOptions, __ΩTsdownPluginResolvedConfig, __ΩTsdownPluginUserConfig };
@@ -1,2 +1,2 @@
1
- import { a as __ΩTsdownPluginContext, c as __ΩTsdownPluginUserConfig, i as TsdownPluginUserConfig, n as TsdownPluginOptions, o as __ΩTsdownPluginOptions, r as TsdownPluginResolvedConfig, s as __ΩTsdownPluginResolvedConfig, t as TsdownPluginContext } from "../plugin-Bh65OO11.cjs";
1
+ import { a as __ΩTsdownPluginContext, c as __ΩTsdownPluginUserConfig, i as TsdownPluginUserConfig, n as TsdownPluginOptions, o as __ΩTsdownPluginOptions, r as TsdownPluginResolvedConfig, s as __ΩTsdownPluginResolvedConfig, t as TsdownPluginContext } from "../plugin-Dw2Yyxv8.cjs";
2
2
  export { TsdownPluginContext, TsdownPluginOptions, TsdownPluginResolvedConfig, TsdownPluginUserConfig, __ΩTsdownPluginContext, __ΩTsdownPluginOptions, __ΩTsdownPluginResolvedConfig, __ΩTsdownPluginUserConfig };
@@ -1,2 +1,2 @@
1
- import { a as __ΩTsdownPluginContext, c as __ΩTsdownPluginUserConfig, i as TsdownPluginUserConfig, n as TsdownPluginOptions, o as __ΩTsdownPluginOptions, r as TsdownPluginResolvedConfig, s as __ΩTsdownPluginResolvedConfig, t as TsdownPluginContext } from "../plugin-DnzEhAC7.mjs";
1
+ import { a as __ΩTsdownPluginContext, c as __ΩTsdownPluginUserConfig, i as TsdownPluginUserConfig, n as TsdownPluginOptions, o as __ΩTsdownPluginOptions, r as TsdownPluginResolvedConfig, s as __ΩTsdownPluginResolvedConfig, t as TsdownPluginContext } from "../plugin-Bon2U6FJ.mjs";
2
2
  export { TsdownPluginContext, TsdownPluginOptions, TsdownPluginResolvedConfig, TsdownPluginUserConfig, __ΩTsdownPluginContext, __ΩTsdownPluginOptions, __ΩTsdownPluginResolvedConfig, __ΩTsdownPluginUserConfig };
@@ -1,4 +1,4 @@
1
- import { t as TsdownPluginContext } from "./plugin-Bh65OO11.cjs";
1
+ import { t as TsdownPluginContext } from "./plugin-Dw2Yyxv8.cjs";
2
2
  import * as rolldown0 from "rolldown";
3
3
 
4
4
  //#region src/helpers/unplugin.d.ts
@@ -2693,6 +2693,7 @@ var PowerlinesContext = class PowerlinesContext {
2693
2693
  projectRoot: config.root,
2694
2694
  name: config.name,
2695
2695
  title: config.title,
2696
+ organization: config.organization,
2696
2697
  compatibilityDate: config.compatibilityDate,
2697
2698
  description: config.description,
2698
2699
  sourceRoot: config.sourceRoot,
@@ -3493,6 +3494,7 @@ var PowerlinesContext = class PowerlinesContext {
3493
3494
  this.config.entry = getUniqueEntries(this.config.entry);
3494
3495
  if (this.config.name?.startsWith("@") && this.config.name.split("/").filter(Boolean).length > 1) this.config.name = this.config.name.split("/").filter(Boolean)[1];
3495
3496
  this.config.title ??= (0, __stryke_string_format_title_case.titleCase)(this.config.name);
3497
+ this.config.organization ??= ((0, __stryke_type_checks_is_set_object.isSetObject)(this.workspaceConfig.organization) ? this.workspaceConfig.organization.name : this.workspaceConfig.organization) || ((0, __stryke_type_checks_is_set_object.isSetObject)(this.packageJson?.author) ? this.packageJson?.author?.name : this.packageJson?.author) || this.config.name;
3496
3498
  if (this.config.userConfig.build?.external) this.config.userConfig.build.external = (0, __stryke_helpers_get_unique.getUnique)(this.config.userConfig.build.external);
3497
3499
  if (this.config.userConfig.build?.noExternal) this.config.userConfig.build.noExternal = (0, __stryke_helpers_get_unique.getUnique)(this.config.userConfig.build.noExternal);
3498
3500
  if (this.config.build.external) this.config.build.external = (0, __stryke_helpers_get_unique.getUnique)(this.config.build.external);
@@ -2660,6 +2660,7 @@ var PowerlinesContext = class PowerlinesContext {
2660
2660
  projectRoot: config.root,
2661
2661
  name: config.name,
2662
2662
  title: config.title,
2663
+ organization: config.organization,
2663
2664
  compatibilityDate: config.compatibilityDate,
2664
2665
  description: config.description,
2665
2666
  sourceRoot: config.sourceRoot,
@@ -3460,6 +3461,7 @@ var PowerlinesContext = class PowerlinesContext {
3460
3461
  this.config.entry = getUniqueEntries(this.config.entry);
3461
3462
  if (this.config.name?.startsWith("@") && this.config.name.split("/").filter(Boolean).length > 1) this.config.name = this.config.name.split("/").filter(Boolean)[1];
3462
3463
  this.config.title ??= titleCase(this.config.name);
3464
+ this.config.organization ??= (isSetObject(this.workspaceConfig.organization) ? this.workspaceConfig.organization.name : this.workspaceConfig.organization) || (isSetObject(this.packageJson?.author) ? this.packageJson?.author?.name : this.packageJson?.author) || this.config.name;
3463
3465
  if (this.config.userConfig.build?.external) this.config.userConfig.build.external = getUnique(this.config.userConfig.build.external);
3464
3466
  if (this.config.userConfig.build?.noExternal) this.config.userConfig.build.noExternal = getUnique(this.config.userConfig.build.noExternal);
3465
3467
  if (this.config.build.external) this.config.build.external = getUnique(this.config.build.external);
@@ -1,4 +1,4 @@
1
- import { t as TsdownPluginContext } from "./plugin-DnzEhAC7.mjs";
1
+ import { t as TsdownPluginContext } from "./plugin-Bon2U6FJ.mjs";
2
2
  import * as rolldown0 from "rolldown";
3
3
 
4
4
  //#region src/helpers/unplugin.d.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-tsdown",
3
- "version": "0.1.75",
3
+ "version": "0.1.76",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
6
  "repository": {
@@ -150,13 +150,13 @@
150
150
  "@stryke/type-checks": "^0.5.15",
151
151
  "@stryke/types": "^0.10.29",
152
152
  "defu": "^6.1.4",
153
- "powerlines": "^0.36.26"
153
+ "powerlines": "^0.36.27"
154
154
  },
155
155
  "devDependencies": {
156
- "@powerlines/nx": "^0.11.52",
157
- "@powerlines/plugin-plugin": "^0.12.74",
156
+ "@powerlines/nx": "^0.11.53",
157
+ "@powerlines/plugin-plugin": "^0.12.75",
158
158
  "@types/node": "^24.10.4"
159
159
  },
160
160
  "publishConfig": { "access": "public" },
161
- "gitHead": "a703a2dd9be6175a67a9bf4847d0217be4e920af"
161
+ "gitHead": "fbc59ce584fd0f78d90d2dbaa18f9c9267bd3b61"
162
162
  }