Skip to content

Commit

Permalink
fix: remove @Alwatr in definePackage and update deps (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd authored Dec 19, 2023
2 parents 8cfabcf + c7140bf commit 3bbe357
Show file tree
Hide file tree
Showing 13 changed files with 43 additions and 109 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ jobs:
id: yarn_config
run: echo "cache_folder=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT

- uses: actions/[email protected]
- name: 🏗 Cache Layer
uses: actions/[email protected]
# id: yarn_cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn_config.outputs.cache_folder }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ jobs:
id: yarn_config
run: echo "cache_folder=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT

- uses: actions/[email protected]
- name: 🏗 Cache Layer
uses: actions/[email protected]
# id: yarn_cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn_config.outputs.cache_folder }}
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"editor.formatOnPaste": false,
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll": true
"source.fixAll": "explicit"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"prettier.useEditorConfig": true,
Expand Down
2 changes: 1 addition & 1 deletion .yarn/sdks/eslint/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint",
"version": "8.54.0-sdk",
"version": "8.56.0-sdk",
"main": "./lib/api.js",
"type": "commonjs",
"bin": {
Expand Down
2 changes: 1 addition & 1 deletion .yarn/sdks/prettier/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "prettier",
"version": "3.1.0-sdk",
"version": "3.1.1-sdk",
"main": "./index.cjs",
"type": "commonjs",
"bin": "./bin/prettier.cjs"
Expand Down
2 changes: 1 addition & 1 deletion .yarn/sdks/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typescript",
"version": "5.3.2-sdk",
"version": "5.3.3-sdk",
"main": "./lib/typescript.js",
"type": "commonjs",
"bin": {
Expand Down
2 changes: 1 addition & 1 deletion deprecated/icon/src/icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {preloadIcon} from './preload.js';

export {preloadIcon};

definePackage('@alwatr/icon', '1.x')
definePackage('icon', '1.x')

declare global {
interface HTMLElementTagNameMap {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"postcss-preset-env": "^9.3.0",
"prettier": "^3.1.1",
"prettier-plugin-tailwindcss": "^0.5.9",
"tailwindcss": "^3.3.6",
"tailwindcss": "^3.3.7",
"ts-lit-plugin": "^2.0.1",
"tslib": "^2.6.2",
"typescript": "^5.3.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/fract/src/directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {createLogger, definePackage} from '@alwatr/logger';

import {Directive, PartType, type PartInfo, type Part} from './lit-html.js';

definePackage('@alwatr/fract', '1.x');
definePackage('fract', '1.x');

export abstract class AlwatrDirective extends Directive {
protected _logger;
Expand Down
2 changes: 1 addition & 1 deletion packages/i18n/src/l10n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {localeList} from './locale-list.js';
import type {L10nResource, L10nResourceLoader, Locale} from './type.js';
import type {LocaleCode} from '@alwatr/type';

definePackage('@alwatr/i18n', '2.x');
definePackage('i18n', '2.x');

export class AlwatrL10n extends AlwatrObservable<LocaleCode> {
protected _locale?: Locale;
Expand Down
2 changes: 1 addition & 1 deletion packages/router/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {AlwatrObservable} from '@alwatr/signal/observable.js';
import type {RouterConfig, PushState, RouteContext, RouteContextBase} from './type.js';
import type {QueryParameters} from '@alwatr/type';

definePackage('@alwatr/router', '2.x');
definePackage('router', '2.x');

const documentBaseUrl = document.querySelector('base')?.href || '/';

Expand Down
2 changes: 1 addition & 1 deletion packages/style/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"url": "https://github.com/Alwatr/fract/issues"
},
"dependencies": {
"tailwindcss": "^3.3.6",
"tailwindcss": "^3.3.7",
"tslib": "^2.6.2"
}
}
126 changes: 29 additions & 97 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@alwatr/style@workspace:packages/style"
dependencies:
tailwindcss: "npm:^3.3.6"
tailwindcss: "npm:^3.3.7"
tslib: "npm:^2.6.2"
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -3784,7 +3784,7 @@ __metadata:
postcss-preset-env: "npm:^9.3.0"
prettier: "npm:^3.1.1"
prettier-plugin-tailwindcss: "npm:^0.5.9"
tailwindcss: "npm:^3.3.6"
tailwindcss: "npm:^3.3.7"
ts-lit-plugin: "npm:^2.0.1"
tslib: "npm:^2.6.2"
typescript: "npm:^5.3.3"
Expand Down Expand Up @@ -4179,16 +4179,16 @@ __metadata:
linkType: hard

"browserslist@npm:^4.21.10, browserslist@npm:^4.21.9, browserslist@npm:^4.22.1":
version: 4.22.1
resolution: "browserslist@npm:4.22.1"
version: 4.22.2
resolution: "browserslist@npm:4.22.2"
dependencies:
caniuse-lite: "npm:^1.0.30001541"
electron-to-chromium: "npm:^1.4.535"
node-releases: "npm:^2.0.13"
caniuse-lite: "npm:^1.0.30001565"
electron-to-chromium: "npm:^1.4.601"
node-releases: "npm:^2.0.14"
update-browserslist-db: "npm:^1.0.13"
bin:
browserslist: cli.js
checksum: 6810f2d63f171d0b7b8d38cf091708e00cb31525501810a507839607839320d66e657293b0aa3d7f051ecbc025cb07390a90c037682c1d05d12604991e41050b
checksum: 2a331aab90503130043ca41dd5d281fa1e89d5e076d07a2d75e76bf4d693bd56e73d5abcd8c4f39119da6328d450578c216cf1cd5c99b82d8a90a2ae6271b465
languageName: node
linkType: hard

Expand Down Expand Up @@ -4330,10 +4330,10 @@ __metadata:
languageName: node
linkType: hard

"caniuse-lite@npm:^1.0.30001538, caniuse-lite@npm:^1.0.30001541":
version: 1.0.30001564
resolution: "caniuse-lite@npm:1.0.30001564"
checksum: 27722fea974fc8d2cd334cdef23e1299465c870c97902cc5c293673e6c3ae5241f36f31ca180c903160f0b1c3b51e2b2e8962c537b0a6ac6518a1113b5b5665e
"caniuse-lite@npm:^1.0.30001538, caniuse-lite@npm:^1.0.30001565":
version: 1.0.30001570
resolution: "caniuse-lite@npm:1.0.30001570"
checksum: e47230d2016edea56e002fa462a5289f697b48dcfbf703fb01aecc6c98ad4ecaf945ab23c253cb7af056c2d05f266e4e4cbebf45132100e2c9367439cb95b95b
languageName: node
linkType: hard

Expand Down Expand Up @@ -5143,10 +5143,10 @@ __metadata:
languageName: node
linkType: hard

"electron-to-chromium@npm:^1.4.535":
version: 1.4.594
resolution: "electron-to-chromium@npm:1.4.594"
checksum: 3714e204c5dd00fa95aaddd636953c4e6b8b358f780c0b1ba94140fe1b3c25f54364fd818a2d501fbdae5f85903bfa64d634fa57d8b4160847fa0a0f6a53575f
"electron-to-chromium@npm:^1.4.601":
version: 1.4.615
resolution: "electron-to-chromium@npm:1.4.615"
checksum: 6602172761e44ca1a6c010a010efd0c42710e1e08911e76dd2d3df72ae2a563fb75b0853387273d1e45a4befd314162b2b1debcf9055513f62c6d6a8df4de73a
languageName: node
linkType: hard

Expand Down Expand Up @@ -5868,18 +5868,7 @@ __metadata:
languageName: node
linkType: hard

"fs-extra@npm:^11.0.0":
version: 11.1.1
resolution: "fs-extra@npm:11.1.1"
dependencies:
graceful-fs: "npm:^4.2.0"
jsonfile: "npm:^6.0.1"
universalify: "npm:^2.0.0"
checksum: a2480243d7dcfa7d723c5f5b24cf4eba02a6ccece208f1524a2fbde1c629492cfb9a59e4b6d04faff6fbdf71db9fdc8ef7f396417a02884195a625f5d8dc9427
languageName: node
linkType: hard

"fs-extra@npm:^11.2.0":
"fs-extra@npm:^11.0.0, fs-extra@npm:^11.2.0":
version: 11.2.0
resolution: "fs-extra@npm:11.2.0"
dependencies:
Expand Down Expand Up @@ -6505,15 +6494,6 @@ __metadata:
languageName: node
linkType: hard

"ignore-walk@npm:^6.0.0":
version: 6.0.3
resolution: "ignore-walk@npm:6.0.3"
dependencies:
minimatch: "npm:^9.0.0"
checksum: 327759df98c7b4d4039e4c4913507ca372b2a38bb44a1c2bd7ff2ffc7eee7a379025301e478d7640672f0007807c5ec5cc2e41c5226b9058aa58f00b600d3731
languageName: node
linkType: hard

"ignore-walk@npm:^6.0.4":
version: 6.0.4
resolution: "ignore-walk@npm:6.0.4"
Expand Down Expand Up @@ -7940,7 +7920,7 @@ __metadata:
languageName: node
linkType: hard

"nanoid@npm:^3.3.6, nanoid@npm:^3.3.7":
"nanoid@npm:^3.3.7":
version: 3.3.7
resolution: "nanoid@npm:3.3.7"
bin:
Expand Down Expand Up @@ -8045,10 +8025,10 @@ __metadata:
languageName: node
linkType: hard

"node-releases@npm:^2.0.13":
version: 2.0.13
resolution: "node-releases@npm:2.0.13"
checksum: 2fb44bf70fc949d27f3a48a7fd1a9d1d603ddad4ccd091f26b3fb8b1da976605d919330d7388ccd55ca2ade0dc8b2e12841ba19ef249c8bb29bf82532d401af7
"node-releases@npm:^2.0.14":
version: 2.0.14
resolution: "node-releases@npm:2.0.14"
checksum: 199fc93773ae70ec9969bc6d5ac5b2bbd6eb986ed1907d751f411fef3ede0e4bfdb45ceb43711f8078bea237b6036db8b1bf208f6ff2b70c7d615afd157f3ab9
languageName: node
linkType: hard

Expand Down Expand Up @@ -8149,16 +8129,7 @@ __metadata:
languageName: node
linkType: hard

"npm-packlist@npm:^8.0.0":
version: 8.0.0
resolution: "npm-packlist@npm:8.0.0"
dependencies:
ignore-walk: "npm:^6.0.0"
checksum: 0085e64695f10c8d377d9f2f8eaecb06ee41881bfc2e6f1996578b016fc62f873cc76ad90796d3b41712a5252d2795ecb374954846346ab5d2636b1c2bc65aa2
languageName: node
linkType: hard

"npm-packlist@npm:^8.0.1":
"npm-packlist@npm:^8.0.0, npm-packlist@npm:^8.0.1":
version: 8.0.1
resolution: "npm-packlist@npm:8.0.1"
dependencies:
Expand Down Expand Up @@ -8522,35 +8493,7 @@ __metadata:
languageName: node
linkType: hard

"pacote@npm:^17.0.0, pacote@npm:^17.0.4":
version: 17.0.4
resolution: "pacote@npm:17.0.4"
dependencies:
"@npmcli/git": "npm:^5.0.0"
"@npmcli/installed-package-contents": "npm:^2.0.1"
"@npmcli/promise-spawn": "npm:^7.0.0"
"@npmcli/run-script": "npm:^7.0.0"
cacache: "npm:^18.0.0"
fs-minipass: "npm:^3.0.0"
minipass: "npm:^7.0.2"
npm-package-arg: "npm:^11.0.0"
npm-packlist: "npm:^8.0.0"
npm-pick-manifest: "npm:^9.0.0"
npm-registry-fetch: "npm:^16.0.0"
proc-log: "npm:^3.0.0"
promise-retry: "npm:^2.0.1"
read-package-json: "npm:^7.0.0"
read-package-json-fast: "npm:^3.0.0"
sigstore: "npm:^2.0.0"
ssri: "npm:^10.0.0"
tar: "npm:^6.1.11"
bin:
pacote: lib/bin.js
checksum: 7dab80013eed5e652b4b260a032bea617bfe14a59fb0e7cc9e4f1404f940f67493c52c6b32fbd73a373aa8e8668a8930d6f41c5d8ce6615edd4d1b08df237d6b
languageName: node
linkType: hard

"pacote@npm:^17.0.5":
"pacote@npm:^17.0.0, pacote@npm:^17.0.4, pacote@npm:^17.0.5":
version: 17.0.5
resolution: "pacote@npm:17.0.5"
dependencies:
Expand Down Expand Up @@ -9308,18 +9251,7 @@ __metadata:
languageName: node
linkType: hard

"postcss@npm:^8.2.4, postcss@npm:^8.4.23":
version: 8.4.31
resolution: "postcss@npm:8.4.31"
dependencies:
nanoid: "npm:^3.3.6"
picocolors: "npm:^1.0.0"
source-map-js: "npm:^1.0.2"
checksum: 748b82e6e5fc34034dcf2ae88ea3d11fd09f69b6c50ecdd3b4a875cfc7cdca435c958b211e2cb52355422ab6fccb7d8f2f2923161d7a1b281029e4a913d59acf
languageName: node
linkType: hard

"postcss@npm:^8.4.32":
"postcss@npm:^8.2.4, postcss@npm:^8.4.23, postcss@npm:^8.4.32":
version: 8.4.32
resolution: "postcss@npm:8.4.32"
dependencies:
Expand Down Expand Up @@ -10492,9 +10424,9 @@ __metadata:
languageName: node
linkType: hard

"tailwindcss@npm:^3.3.6":
version: 3.3.6
resolution: "tailwindcss@npm:3.3.6"
"tailwindcss@npm:^3.3.7":
version: 3.3.7
resolution: "tailwindcss@npm:3.3.7"
dependencies:
"@alloc/quick-lru": "npm:^5.2.0"
arg: "npm:^5.0.2"
Expand All @@ -10521,7 +10453,7 @@ __metadata:
bin:
tailwind: lib/cli.js
tailwindcss: lib/cli.js
checksum: 69caade773249cb963c33e81f85b7fc423dcb74b416727483f434f4e12874187f633970c9de864fa96736289abaf71189314a53589ada0be6c09ccb0e8b78391
checksum: 89c8610ae4c3e358bbc2bef255d6665d2e54527eb6f131e63e6e702003fa97c9ca14cae675f6760870863fcc46eada8f4b54aeb1a1ed5669a81c325b423a3db0
languageName: node
linkType: hard

Expand Down

0 comments on commit 3bbe357

Please sign in to comment.