Skip to content

Commit

Permalink
v1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlDuFromChina committed Nov 12, 2022
1 parent ee761d1 commit c23806f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
/lib/

# Editor directories and files
.idea
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"name": "@sixpence/js-utils",
"version": "1.0.1",
"version": "1.0.2",
"description": "web core",
"main": "index.js",
"main": "lib/index.cjs.js",
"module": "lib/index.esm.js",
"typings": "lib/types/index.d.ts",
"repository": "https://github.com/CarlDuFromChina/js-utils",
"author": "Karl Du",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ export default [
})],
output: [
{
dir: 'dist',
dir: 'lib',
format: 'cjs',
entryFileNames: '[name].cjs.js'
},
{
dir: 'dist',
dir: 'lib',
format: 'esm',
entryFileNames: '[name].esm.js'
}
Expand Down
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"exclude": ["node_modules", "./dist"],
"exclude": ["node_modules", "./dist", "./lib"],
"compilerOptions": {
"target": "ES6", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
"lib": ["DOM", "ES2015", "ES2016", "ES2017", "ES2019"], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
"module": "ES6", /* Specify what module code is generated. */
"moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
"typeRoots": ["node_modules/@types"],
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
"outDir": "./dist", /* Specify an output folder for all emitted files. */
"declarationDir": "./dist/types", /* Specify the output directory for generated declaration files. */
"outDir": "./lib", /* Specify an output folder for all emitted files. */
"declarationDir": "./lib/types", /* Specify the output directory for generated declaration files. */
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */
"strict": true, /* Enable all strict type-checking options. */
}
Expand Down

0 comments on commit c23806f

Please sign in to comment.