Skip to content

Commit 49ffd73

Browse files
committedFeb 11, 2025·
update build, fix test
1 parent 361e417 commit 49ffd73

File tree

15 files changed

+21
-7
lines changed

15 files changed

+21
-7
lines changed
 

‎Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ COPY ./schemas/ ./
9898

9999
RUN rm -R node_modules | true
100100
RUN rm -R dist | true
101+
RUN rm -R tsconfig.tsbuildinfo | true
101102
RUN rm package-lock.json | true
102103

103104
# Copy Core ------------------------------------------------------------------------------------------------------------
@@ -107,6 +108,7 @@ COPY ./core/ ./
107108

108109
RUN rm -R node_modules | true
109110
RUN rm -R dist | true
111+
RUN rm -R tsconfig.tsbuildinfo | true
110112
RUN rm package-lock.json | true
111113

112114
# Copy Plugins ---------------------------------------------------------------------------------------------------------
@@ -116,13 +118,15 @@ COPY ./plugins/package.json ./
116118

117119
RUN rm -R node_modules | true
118120
RUN rm -R dist | true
121+
RUN rm -R tsconfig.tsbuildinfo | true
119122
RUN rm package-lock.json | true
120123

121124
WORKDIR /opt/flyingfish/plugins/letsencrypt
122125
COPY ./plugins/letsencrypt/ ./
123126

124127
RUN rm -R node_modules | true
125128
RUN rm -R dist | true
129+
RUN rm -R tsconfig.tsbuildinfo | true
126130
RUN rm package-lock.json | true
127131

128132
# Copy/ Backend --------------------------------------------------------------------------------------------------------
@@ -132,6 +136,7 @@ COPY backend ./
132136

133137
RUN rm -R node_modules | true
134138
RUN rm -R dist | true
139+
RUN rm -R tsconfig.tsbuildinfo | true
135140
RUN rm package-lock.json | true
136141

137142
# Copy/Install Frontend ------------------------------------------------------------------------------------------------

‎backend/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"test": "node --experimental-vm-modules ../node_modules/.bin/jest",
99
"npm-check-updates": "npm-check-updates",
1010
"build": "npm run compile",
11+
"build_force": "rm -r dist | true && rm tsconfig.tsbuildinfo | true && npm run compile",
1112
"compile": "tsc --project tsconfig.json"
1213
},
1314
"repository": {

‎backend/tests/Provider/NoIp/NoIp.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ describe('testing dyndns client noip', () => {
4545
password: 'password',
4646
ip: '3.4.5.6',
4747
ip6: null,
48-
hostname: []
48+
hostnames: []
4949
});
5050

5151
expect(result.result).toBe(false);
@@ -61,7 +61,7 @@ describe('testing dyndns client noip', () => {
6161
password: password!,
6262
ip: '3.4.5.6',
6363
ip6: null,
64-
hostname: [hostname!]
64+
hostnames: [hostname!]
6565
});
6666

6767
expect(result.result).toBe(true);

‎core/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"scripts": {
99
"npm-check-updates": "npm-check-updates",
1010
"build": "npm run compile",
11+
"build_force": "rm -r dist | true && rm tsconfig.tsbuildinfo | true && npm run compile",
1112
"compile": "tsc --project tsconfig.json"
1213
},
1314
"repository": {

‎ddnsserver/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"scripts": {
88
"npm-check-updates": "npm-check-updates",
99
"build": "npm run compile",
10+
"build_force": "rm -r dist | true && rm tsconfig.tsbuildinfo | true && npm run compile",
1011
"compile": "tsc --project tsconfig.json"
1112
},
1213
"repository": {

‎himhip/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"scripts": {
4141
"npm-check-updates": "npm-check-updates",
4242
"build": "npm run compile",
43+
"build_force": "rm -r dist | true && rm tsconfig.tsbuildinfo | true && npm run compile",
4344
"compile": "tsc --project tsconfig.json"
4445
},
4546
"type": "module",

‎package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
],
2828
"scripts": {
2929
"npm-check-updates": "cd ./schemas/ && npm-check-updates && cd ../core/ && npm-check-updates && cd ../backend/ && npm-check-updates && cd ../frontend/ && npm-check-updates && cd ../ddnsserver/ && npm-check-updates && cd ../himhip/ && npm-check-updates && cd ../nginx/ && npm-check-updates && cd ../plugins/ && npm-check-updates && cd ../sshserver/ && npm-check-updates",
30-
"compile": "cd ./schemas/ && npm run compile && cd ../core/ && npm run compile && cd ../backend/ && npm run compile && cd ../frontend/ && gulp default && cd ../ddnsserver/ && npm run compile && cd ../himhip/ && npm run compile && cd ../nginx/ && npm run compile && cd ../plugins/ && npm run compile && cd ../sshserver/ && npm run compile"
30+
"compile": "cd ./schemas/ && npm run compile && cd ../core/ && npm run compile && cd ../backend/ && npm run compile && cd ../frontend/ && gulp default && cd ../ddnsserver/ && npm run compile && cd ../himhip/ && npm run compile && cd ../nginx/ && npm run compile && cd ../plugins/ && npm run compile && cd ../sshserver/ && npm run compile",
31+
"build_force": "cd ./schemas/ && npm run build_force && cd ../core/ && npm run build_force && cd ../backend/ && npm run build_force && cd ../frontend/ && gulp default && cd ../ddnsserver/ && npm run build_force && cd ../himhip/ && npm run build_force && cd ../nginx/ && npm run compile && cd ../plugins/ && npm run build_force && cd ../sshserver/ && npm run build_force"
3132
},
3233
"devDependencies": {
3334
"husky": "^9.1.7",

‎plugins/demoplugin/.npmrc

-1
This file was deleted.

‎plugins/demoplugin/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"scripts": {
66
"npm-check-updates": "npm-check-updates",
77
"build": "npm run compile",
8+
"build_force": "rm -r dist | true && rm tsconfig.tsbuildinfo | true && npm run compile",
89
"compile": "tsc --project tsconfig.json",
910
"install": "npm run compile"
1011
},

‎plugins/letsencrypt/.npmrc

-1
This file was deleted.

‎plugins/letsencrypt/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"scripts": {
66
"npm-check-updates": "npm-check-updates",
77
"build": "npm run compile",
8+
"build_force": "rm -r dist | true && rm tsconfig.tsbuildinfo | true && npm run compile",
89
"compile": "tsc --project tsconfig.json",
910
"install": "npm run compile"
1011
},

‎plugins/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
],
2121
"scripts": {
2222
"npm-check-updates": "cd ./demoplugin/ && npm-check-updates && cd ../letsencrypt/ && npm-check-updates",
23-
"compile": "cd ./demoplugin/ && npm run compile && cd ../letsencrypt/ && npm run compile"
23+
"compile": "cd ./demoplugin/ && npm run compile && cd ../letsencrypt/ && npm run compile",
24+
"build_force": "cd ./demoplugin/ && npm run build_force && cd ../letsencrypt/ && npm run build_force"
2425
},
2526
"devDependencies": {
2627
"npm-check-updates": "^17.1.14"

‎schemas/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"type": "module",
88
"scripts": {
99
"build": "npm run compile",
10+
"build_force": "rm -r dist | true && rm tsconfig.tsbuildinfo | true && npm run compile",
1011
"compile": "tsc --project tsconfig.json",
1112
"install": "npm run compile",
1213
"npm-check-updates": "npm-check-updates"

‎sshserver/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"scripts": {
88
"npm-check-updates": "npm-check-updates",
99
"build": "npm run compile",
10+
"build_force": "rm -r dist | true && rm tsconfig.tsbuildinfo | true && npm run compile",
1011
"compile": "tsc --project tsconfig.json"
1112
},
1213
"repository": {

‎vpn/tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"removeComments": true,
1212
"sourceMap": true,
1313
"strict": true,
14-
"target": "ES2022"
14+
"target": "ES2022",
15+
"types": ["node"]
1516
},
1617
"include": [
1718
"./src/**/*.ts"

0 commit comments

Comments
 (0)
Please sign in to comment.