Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,3 @@ CODE_OF_CONDUCT.md
CONTRIBUTING.md

src

# CANARY-PACKAGE
lib/api/kibana.*
# /CANARY-PACKAGE
16 changes: 0 additions & 16 deletions scripts/release-canary.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ async function release (opts) {
const originalVersion = packageJson.version
const currentCanaryVersion = packageJson.versionCanary
const originalTypes = packageJson.types
const originalNpmIgnore = await readFile(join(__dirname, '..', '.npmignore'), 'utf8')

const newCanaryInteger = opts.reset ? 1 : (Number(currentCanaryVersion.split('-')[1].split('.')[1]) + 1)
const newCanaryVersion = `${originalVersion.split('-')[0]}-canary.${newCanaryInteger}`
Expand All @@ -49,15 +48,6 @@ async function release (opts) {
'utf8'
)

// update the npmignore to publish the kibana types as well
const newNpmIgnore = originalNpmIgnore.slice(0, originalNpmIgnore.indexOf('# CANARY-PACKAGE')) +
originalNpmIgnore.slice(originalNpmIgnore.indexOf('# /CANARY-PACKAGE') + 17)
await writeFile(
join(__dirname, '..', '.npmignore'),
newNpmIgnore,
'utf8'
)

// confirm the package.json changes with the user
const diff = execSync('git diff').toString().split('\n').map(colorDiff).join('\n')
console.log(diff)
Expand All @@ -81,12 +71,6 @@ async function release (opts) {
JSON.stringify(packageJson, null, 2) + '\n',
'utf8'
)

await writeFile(
join(__dirname, '..', '.npmignore'),
originalNpmIgnore,
'utf8'
)
}

function confirm (question) {
Expand Down
Loading