Skip to content

Commit

Permalink
fix: removes empty files attribute warning (#857)
Browse files Browse the repository at this point in the history
* chore(release): 3.10.5 [skip ci]

* fix: removes warning about empty files

---------

Co-authored-by: svc-cli-bot <[email protected]>
  • Loading branch information
moltar and svc-cli-bot authored Nov 6, 2023
1 parent cfb6ca0 commit 74a5f71
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## [3.10.5](https://github.com/oclif/core/compare/3.10.4...3.10.5) (2023-11-06)


### Bug Fixes

* extra parens in debug logs ([81c9efc](https://github.com/oclif/core/commit/81c9efcb1a042344761bbea01f12e54e39190c59))



## [3.10.4](https://github.com/oclif/core/compare/3.10.3...3.10.4) (2023-11-06)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@oclif/core",
"description": "base library for oclif CLIs",
"version": "3.10.4",
"version": "3.10.5",
"author": "Salesforce",
"bugs": "https://github.com/oclif/core/issues",
"dependencies": {
Expand Down
3 changes: 1 addition & 2 deletions src/config/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {OCLIF_MARKER_OWNER, Performance} from '../performance'
import {cacheCommand} from '../util/cache-command'
import {findRoot} from '../util/find-root'
import {readJson, requireJson} from '../util/fs'
import {castArray, compact, isProd} from '../util/util'
import {castArray, compact} from '../util/util'
import {tsPath} from './ts-node'
import {Debug, getCommandIdPermutations} from './util'

Expand Down Expand Up @@ -172,7 +172,6 @@ export class Plugin implements IPlugin {
this.alias = this.options.name ?? this.pjson.name
const pjsonPath = join(root, 'package.json')
if (!this.name) throw new CLIError(`no name in ${pjsonPath}`)
if (!isProd() && !this.pjson.files) this.warn(`files attribute must be specified in ${pjsonPath}`)
// eslint-disable-next-line new-cap
this._debug = Debug(this.name)
this.version = this.pjson.version
Expand Down

0 comments on commit 74a5f71

Please sign in to comment.