Skip to content

Commit

Permalink
fix: minor configuration fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagozf committed Apr 12, 2020
1 parent beb00b8 commit 2814f43
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 12 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
"author": "Thiago Zanivan <[email protected]>",
"repository": {
"type": "git",
"url": ""
"url": "https://github.com/thiagozf/rimo.git"
},
"bugs": {
"url": "https://github.com/thiagozf/rimo/issues"
},
"license": "MIT",
"engines": {
Expand Down
6 changes: 5 additions & 1 deletion rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ export default {
// Compile TypeScript files
typescript({ useTsconfigDeclarationDir: true }),
// Allow bundling cjs modules (unlike webpack, rollup doesn't understand cjs)
commonjs(),
commonjs({
namedExports: {
'node_modules/lodash/lodash.js': ['cloneDeep', 'isEqual'],
},
}),
// Allow node_modules resolution, so you can use 'external' to control
// which external modules to include in the bundle
// https://github.com/rollup/rollup-plugin-node-resolve#usage
Expand Down
2 changes: 1 addition & 1 deletion src/EntityId.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as shortid from 'shortid'
import shortid from 'shortid'
import { Identifier, PrimitiveIdentifier } from './Identifier'

/**
Expand Down
2 changes: 1 addition & 1 deletion src/ValueObject.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { cloneDeep, isEqual } from 'lodash'
import { isEqual, cloneDeep } from 'lodash'
import { Object } from './Object'

/**
Expand Down
2 changes: 1 addition & 1 deletion tools/gh-pages-publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if (typeof pkg.repository === 'object') {

let parsedUrl = url.parse(repoUrl)
let repository = (parsedUrl.host || '') + (parsedUrl.path || '')
let ghToken = process.env.GH_TOKEN
let ghToken = process.env.GH_TOKEN || process.env.GITHUB_TOKEN

echo('Deploying docs!')
cd('docs')
Expand Down
11 changes: 4 additions & 7 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,18 @@
"compilerOptions": {
"moduleResolution": "node",
"target": "es5",
"module":"es2015",
"module": "es2015",
"lib": ["es2015", "es2016", "es2017", "dom"],
"strict": true,
"sourceMap": true,
"declaration": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"declarationDir": "dist/types",
"outDir": "dist/lib",
"typeRoots": [
"node_modules/@types"
]
"typeRoots": ["node_modules/@types"]
},
"include": [
"src"
]
"include": ["src"]
}

0 comments on commit 2814f43

Please sign in to comment.