@dxtmisha/scripts 0.6.1 → 0.6.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.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxtmisha/scripts",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Development scripts and CLI tools for DXT UI projects - automated component generation, library building and project management tools",
|
|
7
7
|
"keywords": [
|
|
@@ -211,7 +211,7 @@ export class PackageInitItem {
|
|
|
211
211
|
) {
|
|
212
212
|
console.log('Generate library...')
|
|
213
213
|
|
|
214
|
-
PropertiesFile.writeByPath(path, `import '${this.getProjectName()}/style'
|
|
214
|
+
PropertiesFile.writeByPath(path, `import '${this.getProjectName()}/style.css'
|
|
215
215
|
export * from '${this.getProjectName()}'
|
|
216
216
|
`
|
|
217
217
|
)
|
|
@@ -264,6 +264,20 @@ export * from '${this.getProjectName()}'
|
|
|
264
264
|
)
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
+
if (
|
|
268
|
+
packageFile.match(/["']files["']/)
|
|
269
|
+
) {
|
|
270
|
+
console.log('Update package.json: files...')
|
|
271
|
+
|
|
272
|
+
edit = true
|
|
273
|
+
packageFile = packageFile.replace(
|
|
274
|
+
/(["']files["']:[^[]+\[)/,
|
|
275
|
+
`$1
|
|
276
|
+
"packages/${name}/dist",
|
|
277
|
+
"packages/${name}/package.json",`
|
|
278
|
+
)
|
|
279
|
+
}
|
|
280
|
+
|
|
267
281
|
if (edit) {
|
|
268
282
|
PropertiesFile.writeByPath(UI_FILE_PACKAGE, packageFile)
|
|
269
283
|
}
|