Skip to content

Commit d5ce5cd

Browse files
authored
change UMD name to StimulusFlatpickr (#64)
* change UMD name to StimulusFlatpickr * fix typo
1 parent 1ed3e42 commit d5ce5cd

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

dist/index.umd.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"umd:main": "dist/index.umd.js",
1212
"module": "dist/index.m.js",
1313
"source": "src/index.js",
14+
"amdName": "StimulusFlatpickr",
1415
"author": "@adrienpoly",
1516
"license": "MIT",
1617
"external": "stimulus, flatpickr",

rollup.config.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import babel from 'rollup-plugin-babel'
44

55
const pkg = require('./package.json')
66

7-
const name = pkg.name
8-
97
export default {
108
input: 'src/index.js',
119
external: ['stimulus', 'flatpickr'],
@@ -23,7 +21,7 @@ export default {
2321
{
2422
file: 'dist/index.umd.js',
2523
format: 'umd',
26-
name,
24+
name: pkg.amdName,
2725
sourcemap: true,
2826
globals: {
2927
stimulus: 'Stimulus',

0 commit comments

Comments
 (0)