Skip to content

Commit aba2a66

Browse files
1 parent 55aa82b commit aba2a66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,12 @@ export class TypeScriptPlugin {
138138
async copyExtras() {
139139
// include node_modules into build
140140
if (!fs.existsSync(path.resolve(path.join(buildFolder, 'node_modules')))) {
141-
fs.symlinkSync(path.resolve('node_modules'), path.resolve(path.join(buildFolder, 'node_modules')))
141+
fs.symlinkSync(path.resolve('node_modules'), path.resolve(path.join(buildFolder, 'node_modules')), 'dir')
142142
}
143143

144144
// include package.json into build so Serverless can exlcude devDeps during packaging
145145
if (!fs.existsSync(path.resolve(path.join(buildFolder, 'package.json')))) {
146-
fs.symlinkSync(path.resolve('package.json'), path.resolve(path.join(buildFolder, 'package.json')))
146+
fs.symlinkSync(path.resolve('package.json'), path.resolve(path.join(buildFolder, 'package.json')), 'file')
147147
}
148148

149149
// include any "extras" from the "include" section

0 commit comments

Comments
 (0)