@powerlines/plugin-plugin 0.11.17 → 0.11.19

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.
@@ -66,7 +66,7 @@ const plugin = (options = {}) => {
66
66
  await this.fs.writeFile(this.tsconfig.tsconfigFilePath, stormJson.StormJSON.stringify(this.tsconfig.tsconfigJson), { mode: "fs" });
67
67
  }
68
68
  if (this.config.output.projectDistPath) {
69
- this.config.override.outputPath = join.joinPaths(this.config.projectRoot, this.config.output.projectDistPath);
69
+ this.config.build.override.outputPath = join.joinPaths(this.config.projectRoot, this.config.output.projectDistPath);
70
70
  }
71
71
  },
72
72
  async build() {
@@ -99,11 +99,11 @@ const plugin = (options = {}) => {
99
99
  ]
100
100
  : []
101
101
  })));
102
- if (this.config.override.outputPath) {
103
- const sourcePath = append.appendPath(this.config.override.outputPath, this.workspaceConfig.workspaceRoot);
102
+ if (this.config.build.override.outputPath) {
103
+ const sourcePath = append.appendPath(this.config.build.override.outputPath, this.workspaceConfig.workspaceRoot);
104
104
  const destinationPath = join.joinPaths(append.appendPath(this.config.output.outputPath, this.workspaceConfig.workspaceRoot), "dist");
105
105
  if (sourcePath !== destinationPath) {
106
- this.log(types.LogLevelLabel.INFO, `Copying build output files from project directory (${this.config.override.outputPath}) to output directory (${this.config.output.outputPath}).`);
106
+ this.log(types.LogLevelLabel.INFO, `Copying build output files from project directory (${this.config.build.override.outputPath}) to output directory (${this.config.output.outputPath}).`);
107
107
  await copyFile.copyFiles({ input: sourcePath, glob: "**/*" }, destinationPath);
108
108
  }
109
109
  }
package/dist/src/index.js CHANGED
@@ -62,7 +62,7 @@ const plugin = (options = {}) => {
62
62
  await this.fs.writeFile(this.tsconfig.tsconfigFilePath, StormJSON.stringify(this.tsconfig.tsconfigJson), { mode: "fs" });
63
63
  }
64
64
  if (this.config.output.projectDistPath) {
65
- this.config.override.outputPath = joinPaths(this.config.projectRoot, this.config.output.projectDistPath);
65
+ this.config.build.override.outputPath = joinPaths(this.config.projectRoot, this.config.output.projectDistPath);
66
66
  }
67
67
  },
68
68
  async build() {
@@ -95,11 +95,11 @@ const plugin = (options = {}) => {
95
95
  ]
96
96
  : []
97
97
  })));
98
- if (this.config.override.outputPath) {
99
- const sourcePath = appendPath(this.config.override.outputPath, this.workspaceConfig.workspaceRoot);
98
+ if (this.config.build.override.outputPath) {
99
+ const sourcePath = appendPath(this.config.build.override.outputPath, this.workspaceConfig.workspaceRoot);
100
100
  const destinationPath = joinPaths(appendPath(this.config.output.outputPath, this.workspaceConfig.workspaceRoot), "dist");
101
101
  if (sourcePath !== destinationPath) {
102
- this.log(LogLevelLabel.INFO, `Copying build output files from project directory (${this.config.override.outputPath}) to output directory (${this.config.output.outputPath}).`);
102
+ this.log(LogLevelLabel.INFO, `Copying build output files from project directory (${this.config.build.override.outputPath}) to output directory (${this.config.output.outputPath}).`);
103
103
  await copyFiles({ input: sourcePath, glob: "**/*" }, destinationPath);
104
104
  }
105
105
  }
@@ -39,17 +39,13 @@ export type PluginPluginOutputConfig = OutputConfig & {
39
39
  */
40
40
  projectDistPath: string;
41
41
  };
42
- export interface PluginPluginUserConfig extends UserConfig {
42
+ export type PluginPluginUserConfig = UserConfig<TsupBuildConfig, TsupResolvedBuildConfig, "tsup"> & {
43
43
  alloy?: false | Partial<PluginPluginAlloyOptions>;
44
44
  output?: Partial<PluginPluginOutputConfig>;
45
- build?: Partial<TsupBuildConfig>;
46
- override?: Partial<TsupResolvedBuildConfig>;
47
- }
48
- export type PluginPluginResolvedConfig = ResolvedConfig & {
45
+ };
46
+ export type PluginPluginResolvedConfig = ResolvedConfig<PluginPluginUserConfig> & {
49
47
  alloy: false | Required<PluginPluginAlloyOptions>;
50
48
  output: PluginPluginOutputConfig;
51
- build: TsupResolvedBuildConfig;
52
- override: TsupResolvedBuildConfig;
53
49
  };
54
50
  export type PluginPluginContext<TResolvedConfig extends PluginPluginResolvedConfig = PluginPluginResolvedConfig> = PluginContext<TResolvedConfig>;
55
51
  //# sourceMappingURL=plugin.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-plugin",
3
- "version": "0.11.17",
3
+ "version": "0.11.19",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
6
  "repository": {
@@ -132,11 +132,11 @@
132
132
  "defu": "^6.1.4",
133
133
  "esbuild-plugin-babel": "^0.2.3",
134
134
  "jiti": "^2.6.1",
135
- "powerlines": "^0.19.5"
135
+ "powerlines": "^0.21.0"
136
136
  },
137
137
  "devDependencies": {
138
138
  "@alloy-js/rollup-plugin": "^0.1.0",
139
- "@powerlines/nx": "^0.10.9",
139
+ "@powerlines/nx": "^0.10.11",
140
140
  "@rollup/plugin-commonjs": "^28.0.9",
141
141
  "@rollup/plugin-node-resolve": "^16.0.3",
142
142
  "@types/babel__helper-plugin-utils": "^7.10.3",
@@ -146,5 +146,5 @@
146
146
  "rollup-plugin-typescript2": "^0.36.0"
147
147
  },
148
148
  "publishConfig": { "access": "public" },
149
- "gitHead": "041609f2ea8770273cff82b402e3abdc3fcd9133"
149
+ "gitHead": "c6ed2ca745c8f340a55758b3102933dc41e83428"
150
150
  }