Skip to content

Commit 46d8c0e

Browse files
authored
Merge pull request #202 from launchcodedev/dep-upgrades
chore: dependency upgrades
2 parents 146d895 + 0ecee80 commit 46d8c0e

File tree

5 files changed

+2412
-2120
lines changed

5 files changed

+2412
-2120
lines changed

app-config-vite/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"extends": "@lcdev/tsconfig",
33
"compilerOptions": {
44
"rootDir": "./src",
5-
"outDir": "./dist"
5+
"outDir": "./dist",
6+
"lib": ["dom"]
67
},
78
"include": ["src"],
89
"exclude": ["node_modules"],

app-config-webpack/src/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { join } from 'path';
22
import { Compiler } from 'webpack';
3-
import HtmlWebpackPlugin from 'html-webpack-plugin';
3+
import HtmlWebpackPlugin, { HtmlTagObject } from 'html-webpack-plugin';
44
import type { ConfigLoadingOptions, SchemaLoadingOptions } from '@app-config/main';
55

66
import { regex } from './loader';
@@ -91,7 +91,9 @@ export default class AppConfigPlugin implements Options {
9191
'AppConfigPlugin',
9292
async ({ headTags, ...html }) => {
9393
// remove placeholder <script id="app-config"></script> if it exists
94-
const newTags = headTags.filter(({ attributes }) => attributes.id !== 'app-config');
94+
const newTags: HtmlTagObject[] = headTags.filter(
95+
({ attributes }) => attributes.id !== 'app-config',
96+
);
9597

9698
newTags.push({
9799
tagName: 'script',

examples/react-native-project/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@
2727
"@lcdev/tsconfig": "0.1",
2828
"@types/react": "16",
2929
"@types/react-native": "0.63",
30-
"typescript": "3"
30+
"typescript": "4"
3131
}
3232
}

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,8 @@
5656
"extends": [
5757
"@lcdev/commitlint"
5858
]
59+
},
60+
"volta": {
61+
"node": "16.15.0"
5962
}
6063
}

0 commit comments

Comments
 (0)