Skip to content

Commit

Permalink
fix: __package_version__ global type
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd committed Jan 3, 2024
1 parent d89d076 commit de8a3f9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
5 changes: 3 additions & 2 deletions packages/dedupe/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
/// <reference types="@alwatr/nano-build/global.d.ts" />

import type {Dictionary} from '@alwatr/type-helper'

declare global {
// eslint-disable-next-line no-var
var __dedupe__: true;

// eslint-disable-next-line no-var
var __package_version__: string;
}

if (typeof __dedupe__ !== 'undefined') {
Expand Down
8 changes: 4 additions & 4 deletions packages/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@
"watch:ts": "yarn run build:ts --watch --preserveWatchOutput",
"clean": "rm -rfv dist *.tsbuildinfo"
},
"dependencies": {
"@alwatr/dedupe": "workspace:^",
"@alwatr/platform-info": "workspace:^"
},
"devDependencies": {
"@alwatr/nano-build": "workspace:^",
"@alwatr/prettier-config": "workspace:^",
"@alwatr/tsconfig-base": "workspace:^",
"@types/node": "^20.10.6",
"typescript": "^5.3.3"
},
"dependencies": {
"@alwatr/dedupe": "workspace:^",
"@alwatr/platform-info": "workspace:^"
}
}
2 changes: 0 additions & 2 deletions packages/logger/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/// <reference types="@alwatr/nano-build/global.d.ts" />

import {definePackage} from '@alwatr/dedupe';
import {platformInfo} from '@alwatr/platform-info';

Expand Down

0 comments on commit de8a3f9

Please sign in to comment.