fix the code that depends on node_modules
This commit is contained in:
parent
88c7594d2d
commit
dd1bfae823
9 changed files with 7602 additions and 146 deletions
|
@ -1,2 +1,3 @@
|
|||
httpTimeout: 600000
|
||||
nodeLinker: node-modules
|
||||
nmHoistingLimits: "none"
|
||||
|
|
|
@ -16,11 +16,11 @@ gulp.task('copy:backend:views', () =>
|
|||
);
|
||||
|
||||
gulp.task('copy:client:fonts', () =>
|
||||
gulp.src('./packages/client/node_modules/three/examples/fonts/**/*').pipe(gulp.dest('./built/_client_dist_/fonts/'))
|
||||
gulp.src('./node_modules/three/examples/fonts/**/*').pipe(gulp.dest('./built/_client_dist_/fonts/'))
|
||||
);
|
||||
|
||||
gulp.task('copy:client:fontawesome', () =>
|
||||
gulp.src('./packages/client/node_modules/@fortawesome/fontawesome-free/**/*').pipe(gulp.dest('./built/_client_dist_/fontawesome/'))
|
||||
gulp.src('./node_modules/@fortawesome/fontawesome-free/**/*').pipe(gulp.dest('./built/_client_dist_/fontawesome/'))
|
||||
);
|
||||
|
||||
gulp.task('copy:client:locales', cb => {
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
},
|
||||
"packageManager": "yarn@3.2.0",
|
||||
"workspaces": [
|
||||
"client",
|
||||
"backend",
|
||||
"sw"
|
||||
"packages/client",
|
||||
"packages/backend",
|
||||
"packages/sw"
|
||||
],
|
||||
"private": true,
|
||||
"scripts": {
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
"misskey-js": "0.0.14",
|
||||
"mocha": "10.0.0",
|
||||
"ms": "3.0.0-canary.1",
|
||||
"multer": "1.4.4",
|
||||
"multer": "1.4.4-lts.1",
|
||||
"nested-property": "4.0.0",
|
||||
"node-fetch": "3.2.4",
|
||||
"nodemailer": "6.7.5",
|
||||
|
|
|
@ -135,7 +135,7 @@ router.get('/twemoji/(.*)', async ctx => {
|
|||
ctx.set('Content-Security-Policy', 'default-src \'none\'; style-src \'unsafe-inline\'');
|
||||
|
||||
await send(ctx as any, path, {
|
||||
root: `${_dirname}/../../../node_modules/@discordapp/twemoji/dist/svg/`,
|
||||
root: `${_dirname}/../../../../../node_modules/@discordapp/twemoji/dist/svg/`,
|
||||
maxage: ms('30 days'),
|
||||
});
|
||||
});
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
"@/*": ["../src/*"]
|
||||
},
|
||||
"typeRoots": [
|
||||
"../node_modules/@types",
|
||||
"../../../node_modules/@types",
|
||||
"../src/@types"
|
||||
],
|
||||
"lib": [
|
||||
|
|
|
@ -30,5 +30,5 @@ export default defineComponent({
|
|||
</script>
|
||||
|
||||
<style>
|
||||
@import "../../node_modules/katex/dist/katex.min.css";
|
||||
@import "../../../../node_modules/katex/dist/katex.min.css";
|
||||
</style>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
"@/*": ["./src/*"],
|
||||
},
|
||||
"typeRoots": [
|
||||
"node_modules/@types",
|
||||
"../../node_modules/@types",
|
||||
"@types",
|
||||
],
|
||||
"lib": [
|
||||
|
|
Loading…
Reference in a new issue