@powerlines/plugin-plugin 0.11.16 → 0.11.18
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/dist/src/index.cjs +4 -4
- package/dist/src/index.js +4 -4
- package/dist/src/types/plugin.d.ts +3 -7
- package/package.json +5 -5
package/dist/src/index.cjs
CHANGED
|
@@ -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
|
|
42
|
+
export type PluginPluginUserConfig = UserConfig<TsupBuildConfig, TsupResolvedBuildConfig, "tsup"> & {
|
|
43
43
|
alloy?: false | Partial<PluginPluginAlloyOptions>;
|
|
44
44
|
output?: Partial<PluginPluginOutputConfig>;
|
|
45
|
-
|
|
46
|
-
|
|
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.
|
|
3
|
+
"version": "0.11.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
|
|
6
6
|
"repository": {
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"@alloy-js/markdown": "^0.20.0",
|
|
124
124
|
"@alloy-js/typescript": "^0.20.0",
|
|
125
125
|
"@babel/preset-typescript": "^7.28.5",
|
|
126
|
-
"@storm-software/tsup": "^0.2.
|
|
126
|
+
"@storm-software/tsup": "^0.2.38",
|
|
127
127
|
"@stryke/fs": "^0.32.13",
|
|
128
128
|
"@stryke/json": "^0.9.5",
|
|
129
129
|
"@stryke/path": "^0.19.2",
|
|
@@ -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.
|
|
135
|
+
"powerlines": "^0.20.0"
|
|
136
136
|
},
|
|
137
137
|
"devDependencies": {
|
|
138
138
|
"@alloy-js/rollup-plugin": "^0.1.0",
|
|
139
|
-
"@powerlines/nx": "^0.10.
|
|
139
|
+
"@powerlines/nx": "^0.10.10",
|
|
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": "
|
|
149
|
+
"gitHead": "e33924ab31dbf508b8983523edbaecffeebbee4f"
|
|
150
150
|
}
|