Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
Convert to module
Browse files Browse the repository at this point in the history
  • Loading branch information
surol committed Nov 10, 2020
1 parent c619af7 commit f2347b8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
],
overrides: [
{
files: ['*.js'],
files: ['*.js', '*.cjs', '*.mjs'],
env: {
node: true,
},
Expand Down
4 changes: 2 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ node_modules

# Build configurations
/.*
/*.cjs
/*.js
/ts*.json
/typedoc.json
/*.json

# Package lock
/yarn.lock
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js → jest.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = {
[
'jest-junit',
{
suiteName: 'style-producer',
suiteName: '@proc7ts/style-producer',
outputDirectory: './target/test-results',
classNameTemplate: '{classname}: {title}',
titleTemplate: '{classname}: {title}',
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@
"bugs": {
"url": "https://github.com/proc7ts/style-producer/issues"
},
"main": "dist/style-producer.js",
"module": "dist/style-producer.mjs",
"type": "module",
"main": "dist/style-producer.cjs",
"module": "dist/style-producer.js",
"types": "index.d.ts",
"exports": {
".": {
"import": "./dist/style-producer.mjs",
"require": "./dist/style-producer.js"
"import": "./dist/style-producer.js",
"require": "./dist/style-producer.cjs"
}
},
"peerDependencies": {
Expand Down

0 comments on commit f2347b8

Please sign in to comment.