@mrpelz/boilerplate-common 11.2.2 → 12.0.1

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/Makefile CHANGED
@@ -24,6 +24,8 @@
24
24
  util_clear \
25
25
  util_edit \
26
26
  util_get_package_json \
27
+ util_get_package_spec \
28
+ util_get_package_spec_inner \
27
29
  util_get_version \
28
30
  util_install_git_hooks \
29
31
  watch \
@@ -248,6 +250,26 @@ util_get_package_json:
248
250
  source "$(ROOT_DIR)/scripts/utils.sh"; \
249
251
  display "$$(npm pkg get --workspaces=false)" "json";
250
252
 
253
+ util_get_package_spec:
254
+ if [[ "$(include_sub_packages)" = "false" ]]; then \
255
+ exit 0; \
256
+ fi; \
257
+ \
258
+ if [[ -n "$(sub_package)" ]]; then \
259
+ exit 0; \
260
+ fi; \
261
+ \
262
+ if [ ! -d "$(SUB_PACKAGE_DIR)" ]; then \
263
+ $(MAKE) "util_get_package_spec_inner"; \
264
+ fi; \
265
+ \
266
+ for SUB_PACKAGE in $(SUB_PACKAGE_DIR)/*; do \
267
+ $(MAKE) "util_get_package_spec_inner" sub_package="$$SUB_PACKAGE" -s -C "$$SUB_PACKAGE" || exit "$$?"; \
268
+ done;
269
+
270
+ util_get_package_spec_inner:
271
+ @echo @$(PKG_NAME)@$(PKG_VERSION)
272
+
251
273
  util_get_version:
252
274
  @echo $(PKG_VERSION)
253
275
 
package/dist/main.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export declare const sum: (a: number, b: number) => number;
2
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,GAAG,MAAO,MAAM,KAAK,MAAM,KAAG,MAAe,CAAC"}
package/dist/main.js ADDED
@@ -0,0 +1,3 @@
1
+ // noop
2
+ export const sum = (a, b) => a + b;
3
+ //# sourceMappingURL=main.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,OAAO;AAEP,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,CAAS,EAAE,CAAS,EAAU,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mrpelz/boilerplate-common",
3
- "version": "11.2.2",
3
+ "version": "12.0.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/mrpelz/boilerplate.git",
@@ -7,7 +7,7 @@ if check_response "💱 apply changes to \"package.json\"?" y; then
7
7
  "main=dist/main.js" \
8
8
  "module=dist/main.js" \
9
9
  "types=dist/main.d.ts" \
10
- "files[0]=dist/**/*.{js,map,ts}"
10
+ "files[]=dist/**/*.{js,map,ts}"
11
11
 
12
12
  if check_command git; then
13
13
  USER_NAME=$(git config user.name)