@shell-shock/plugin-upgrade 0.1.0

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.
Files changed (46) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +264 -0
  3. package/dist/_virtual/rolldown_runtime.cjs +29 -0
  4. package/dist/components/index.cjs +11 -0
  5. package/dist/components/index.d.cts +3 -0
  6. package/dist/components/index.d.mts +3 -0
  7. package/dist/components/index.mjs +4 -0
  8. package/dist/components/upgrade-builtin.cjs +735 -0
  9. package/dist/components/upgrade-builtin.d.cts +36 -0
  10. package/dist/components/upgrade-builtin.d.cts.map +1 -0
  11. package/dist/components/upgrade-builtin.d.mts +36 -0
  12. package/dist/components/upgrade-builtin.d.mts.map +1 -0
  13. package/dist/components/upgrade-builtin.mjs +728 -0
  14. package/dist/components/upgrade-builtin.mjs.map +1 -0
  15. package/dist/components/upgrade-command.cjs +96 -0
  16. package/dist/components/upgrade-command.d.cts +10 -0
  17. package/dist/components/upgrade-command.d.cts.map +1 -0
  18. package/dist/components/upgrade-command.d.mts +10 -0
  19. package/dist/components/upgrade-command.d.mts.map +1 -0
  20. package/dist/components/upgrade-command.mjs +96 -0
  21. package/dist/components/upgrade-command.mjs.map +1 -0
  22. package/dist/index.cjs +51 -0
  23. package/dist/index.d.cts +12 -0
  24. package/dist/index.d.cts.map +1 -0
  25. package/dist/index.d.mts +12 -0
  26. package/dist/index.d.mts.map +1 -0
  27. package/dist/index.mjs +49 -0
  28. package/dist/index.mjs.map +1 -0
  29. package/dist/types/index.cjs +4 -0
  30. package/dist/types/index.d.cts +3 -0
  31. package/dist/types/index.d.mts +3 -0
  32. package/dist/types/index.mjs +3 -0
  33. package/dist/types/package-manager.cjs +20 -0
  34. package/dist/types/package-manager.d.cts +7 -0
  35. package/dist/types/package-manager.d.cts.map +1 -0
  36. package/dist/types/package-manager.d.mts +7 -0
  37. package/dist/types/package-manager.d.mts.map +1 -0
  38. package/dist/types/package-manager.mjs +19 -0
  39. package/dist/types/package-manager.mjs.map +1 -0
  40. package/dist/types/plugin.cjs +0 -0
  41. package/dist/types/plugin.d.cts +29 -0
  42. package/dist/types/plugin.d.cts.map +1 -0
  43. package/dist/types/plugin.d.mts +29 -0
  44. package/dist/types/plugin.d.mts.map +1 -0
  45. package/dist/types/plugin.mjs +1 -0
  46. package/package.json +185 -0
@@ -0,0 +1,29 @@
1
+ import { ResolvedConfig, UserConfig } from "@shell-shock/core/types/config";
2
+ import { Context } from "@shell-shock/core/types/context";
3
+
4
+ //#region src/types/plugin.d.ts
5
+ interface UpgradePluginOptions {
6
+ /**
7
+ * Optionally specify the name of the package in npm to check for upgrades.
8
+ *
9
+ * @remarks
10
+ * This option is used to determine which package's version to check for upgrades. If not specified, it will default to the value detected in the `package.json` file of the project, or the name of the package that the plugin is a part of if it is being used within a package context. This option is primarily intended for use when the plugin is being used in a non-package context, such as a global installation, where there may not be a `package.json` file to reference.
11
+ */
12
+ packageName?: string;
13
+ }
14
+ type UpgradePluginUserConfig = UserConfig & {
15
+ /**
16
+ * Resolved upgrade configuration for the plugin.
17
+ */
18
+ upgrade: UpgradePluginOptions;
19
+ };
20
+ type UpgradePluginResolvedConfig = ResolvedConfig & {
21
+ /**
22
+ * Resolved upgrade configuration for the plugin.
23
+ */
24
+ upgrade: UpgradePluginOptions;
25
+ };
26
+ type UpgradePluginContext<TResolvedConfig extends UpgradePluginResolvedConfig = UpgradePluginResolvedConfig> = Context<TResolvedConfig>;
27
+ //#endregion
28
+ export { UpgradePluginContext, UpgradePluginOptions, UpgradePluginResolvedConfig, UpgradePluginUserConfig };
29
+ //# sourceMappingURL=plugin.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;UAwBiB,oBAAA;;AAAjB;AAUA;AAOA;AAOA;;EAEI,WAAA,CAAA,EAAA,MAAA;;AACA,KAjBQ,uBAAA,GAA0B,UAiBlC,GAAA;EAAO;;;WAbA;;KAGC,2BAAA,GAA8B;;;;WAI/B;;KAGC,6CACc,8BACtB,+BACA,QAAQ"}
@@ -0,0 +1 @@
1
+ export { };
package/package.json ADDED
@@ -0,0 +1,185 @@
1
+ {
2
+ "name": "@shell-shock/plugin-upgrade",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "description": "A package containing a Shell Shock plugin to manage upgrading the local application's version.",
6
+ "repository": {
7
+ "type": "github",
8
+ "url": "https://github.com/storm-software/shell-shock.git",
9
+ "directory": "packages/plugin-upgrade"
10
+ },
11
+ "homepage": "https://stormsoftware.com",
12
+ "bugs": {
13
+ "url": "https://stormsoftware.com/support",
14
+ "email": "support@stormsoftware.com"
15
+ },
16
+ "author": {
17
+ "name": "Storm Software",
18
+ "email": "contact@stormsoftware.com",
19
+ "url": "https://stormsoftware.com"
20
+ },
21
+ "maintainers": [
22
+ {
23
+ "name": "Storm Software",
24
+ "email": "contact@stormsoftware.com",
25
+ "url": "https://stormsoftware.com"
26
+ }
27
+ ],
28
+ "contributors": [
29
+ {
30
+ "name": "Storm Software",
31
+ "email": "contact@stormsoftware.com",
32
+ "url": "https://stormsoftware.com"
33
+ }
34
+ ],
35
+ "funding": {
36
+ "type": "github",
37
+ "url": "https://github.com/sponsors/storm-software"
38
+ },
39
+ "license": "Apache-2.0",
40
+ "private": false,
41
+ "main": "./dist/index.cjs",
42
+ "module": "./dist/index.mjs",
43
+ "exports": {
44
+ ".": {
45
+ "require": {
46
+ "types": "./dist/index.d.cts",
47
+ "default": "./dist/index.cjs"
48
+ },
49
+ "import": {
50
+ "types": "./dist/index.d.mts",
51
+ "default": "./dist/index.mjs"
52
+ },
53
+ "default": {
54
+ "types": "./dist/index.d.mts",
55
+ "default": "./dist/index.mjs"
56
+ }
57
+ },
58
+ "./components": {
59
+ "require": {
60
+ "types": "./dist/components/index.d.cts",
61
+ "default": "./dist/components/index.cjs"
62
+ },
63
+ "import": {
64
+ "types": "./dist/components/index.d.mts",
65
+ "default": "./dist/components/index.mjs"
66
+ },
67
+ "default": {
68
+ "types": "./dist/components/index.d.mts",
69
+ "default": "./dist/components/index.mjs"
70
+ }
71
+ },
72
+ "./components/upgrade-builtin": {
73
+ "require": {
74
+ "types": "./dist/components/upgrade-builtin.d.cts",
75
+ "default": "./dist/components/upgrade-builtin.cjs"
76
+ },
77
+ "import": {
78
+ "types": "./dist/components/upgrade-builtin.d.mts",
79
+ "default": "./dist/components/upgrade-builtin.mjs"
80
+ },
81
+ "default": {
82
+ "types": "./dist/components/upgrade-builtin.d.mts",
83
+ "default": "./dist/components/upgrade-builtin.mjs"
84
+ }
85
+ },
86
+ "./components/upgrade-command": {
87
+ "require": {
88
+ "types": "./dist/components/upgrade-command.d.cts",
89
+ "default": "./dist/components/upgrade-command.cjs"
90
+ },
91
+ "import": {
92
+ "types": "./dist/components/upgrade-command.d.mts",
93
+ "default": "./dist/components/upgrade-command.mjs"
94
+ },
95
+ "default": {
96
+ "types": "./dist/components/upgrade-command.d.mts",
97
+ "default": "./dist/components/upgrade-command.mjs"
98
+ }
99
+ },
100
+ "./package.json": "./package.json",
101
+ "./types": {
102
+ "require": {
103
+ "types": "./dist/types/index.d.cts",
104
+ "default": "./dist/types/index.cjs"
105
+ },
106
+ "import": {
107
+ "types": "./dist/types/index.d.mts",
108
+ "default": "./dist/types/index.mjs"
109
+ },
110
+ "default": {
111
+ "types": "./dist/types/index.d.mts",
112
+ "default": "./dist/types/index.mjs"
113
+ }
114
+ },
115
+ "./types/package-manager": {
116
+ "require": {
117
+ "types": "./dist/types/package-manager.d.cts",
118
+ "default": "./dist/types/package-manager.cjs"
119
+ },
120
+ "import": {
121
+ "types": "./dist/types/package-manager.d.mts",
122
+ "default": "./dist/types/package-manager.mjs"
123
+ },
124
+ "default": {
125
+ "types": "./dist/types/package-manager.d.mts",
126
+ "default": "./dist/types/package-manager.mjs"
127
+ }
128
+ },
129
+ "./types/plugin": {
130
+ "require": {
131
+ "types": "./dist/types/plugin.d.cts",
132
+ "default": "./dist/types/plugin.cjs"
133
+ },
134
+ "import": {
135
+ "types": "./dist/types/plugin.d.mts",
136
+ "default": "./dist/types/plugin.mjs"
137
+ },
138
+ "default": {
139
+ "types": "./dist/types/plugin.d.mts",
140
+ "default": "./dist/types/plugin.mjs"
141
+ }
142
+ }
143
+ },
144
+ "types": "./dist/index.d.cts",
145
+ "typings": "dist/index.d.mts",
146
+ "files": ["dist/**/*"],
147
+ "keywords": [
148
+ "style-dictionary",
149
+ "shell-shock",
150
+ "shell-shock-plugin",
151
+ "powerlines",
152
+ "storm-software"
153
+ ],
154
+ "dependencies": {
155
+ "@alloy-js/core": "0.23.0-dev.8",
156
+ "@alloy-js/typescript": "0.23.0-dev.4",
157
+ "@powerlines/deepkit": "^0.6.65",
158
+ "@powerlines/plugin-alloy": "^0.23.15",
159
+ "@powerlines/plugin-plugin": "^0.12.236",
160
+ "@shell-shock/core": "^0.8.10",
161
+ "@stryke/path": "0.26.6",
162
+ "powerlines": "^0.38.52",
163
+ "defu": "6.1.4"
164
+ },
165
+ "devDependencies": {
166
+ "@powerlines/plugin-deepkit": "^0.11.164",
167
+ "@types/node": "^22.19.11"
168
+ },
169
+ "publishConfig": {
170
+ "access": "public",
171
+ "exports": {
172
+ ".": { "require": "./dist/index.cjs", "import": "./dist/index.mjs" },
173
+ "./types": {
174
+ "require": "./dist/types/index.cjs",
175
+ "import": "./dist/types/index.mjs"
176
+ },
177
+ "./types/plugin": {
178
+ "require": "./dist/types/plugin.cjs",
179
+ "import": "./dist/types/plugin.mjs"
180
+ },
181
+ "./package.json": "./package.json"
182
+ }
183
+ },
184
+ "gitHead": "ba4e6ba921fb77de5be8950f02ea798752b61450"
185
+ }