Skip to content

Commit abdec8e

Browse files
committed
fix(package): Fixed build script for npm
1 parent 367ca2a commit abdec8e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tools/build.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ promise = promise.then(() => del(['dist/*']));
3131
presets: pkg.babel.presets.map(x => (x === 'latest' ? ['latest', { es2015: { modules: false } }] : x)),
3232
}))],
3333
}).then(bundle => bundle.write({
34-
dest: `dist/${format === 'cjs' ? 'aspnet-auth' : `aspnet-auth-${format}`}.js`,
34+
file: `dist/${format === 'cjs' ? 'aspnet-auth' : `aspnet-auth-${format}`}.js`,
3535
format,
36-
sourceMap: true,
37-
moduleName: format === 'umd' ? pkg.name : undefined,
36+
name: format === 'umd' ? pkg.name : undefined,
3837
})));
3938
});
4039

0 commit comments

Comments
 (0)