-
-
Notifications
You must be signed in to change notification settings - Fork 591
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(repo): Move all .d.ts files to types folder & lint (#221)
- Loading branch information
Showing
21 changed files
with
210 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
import commonjs from '../types'; | ||
|
||
const config: import("rollup").RollupOptions = { | ||
input: 'main.js', | ||
output: { | ||
file: 'bundle.js', | ||
format: 'iife' | ||
}, | ||
plugins: [ | ||
commonjs({ | ||
include: 'node_modules/**', | ||
exclude: [ 'node_modules/foo/**', 'node_modules/bar/**', /node_modules/ ], | ||
extensions: [ '.js', '.coffee' ], | ||
ignoreGlobal: false, | ||
sourceMap: false, | ||
namedExports: { './module.js': ['foo', 'bar' ] }, | ||
ignore: [ 'conditional-runtime-dependency' ] | ||
}) | ||
] | ||
const config: import('rollup').RollupOptions = { | ||
input: 'main.js', | ||
output: { | ||
file: 'bundle.js', | ||
format: 'iife' | ||
}, | ||
plugins: [ | ||
commonjs({ | ||
include: 'node_modules/**', | ||
exclude: ['node_modules/foo/**', 'node_modules/bar/**', /node_modules/], | ||
extensions: ['.js', '.coffee'], | ||
ignoreGlobal: false, | ||
sourceMap: false, | ||
namedExports: { './module.js': ['foo', 'bar'] }, | ||
ignore: ['conditional-runtime-dependency'] | ||
}) | ||
] | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
// @ts-check | ||
import json, { RollupJsonOptions } from '..'; | ||
import { RollupOptions } from 'rollup'; | ||
|
||
/** @type {import("rollup").RollupOptions} */ | ||
const config = { | ||
input: 'main.js', | ||
output: { | ||
file: 'bundle.js', | ||
format: 'iife' | ||
}, | ||
plugins: [ | ||
json({ | ||
include: 'node_modules/**', | ||
exclude: ['node_modules/foo/**', 'node_modules/bar/**'], | ||
preferConst: true, | ||
indent: ' ', | ||
compact: true, | ||
namedExports: true | ||
}) | ||
] | ||
import json from '..'; | ||
|
||
const config: RollupOptions = { | ||
input: 'main.js', | ||
output: { | ||
file: 'bundle.js', | ||
format: 'iife' | ||
}, | ||
plugins: [ | ||
json({ | ||
include: 'node_modules/**', | ||
exclude: ['node_modules/foo/**', 'node_modules/bar/**'], | ||
preferConst: true, | ||
indent: ' ', | ||
compact: true, | ||
namedExports: true | ||
}) | ||
] | ||
}; | ||
|
||
export default config; |
Oops, something went wrong.