Skip to content

Commit

Permalink
fix schedulerLicenseKey situation
Browse files Browse the repository at this point in the history
  • Loading branch information
arshaw committed Jun 19, 2020
1 parent b4f2044 commit cbfad42
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 4 deletions.
2 changes: 1 addition & 1 deletion example-projects
13 changes: 11 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -411,14 +411,23 @@ exports.lintBuiltDts = function() {
let { stdout } = require('./scripts/lib/shell').sync([
'grep', '-iEe', '(declare module [\'"]\\.|p?react)', dtsFile
])

stdout = stdout.trim()

if (stdout) { // don't worry about failure. grep gives failure if no results
console.log(' BAD: ' + stdout)
anyFailures = true
}

if (struct.isPremium && struct.name !== '@fullcalendar/premium-common') {
let { stdout: stdout2 } = require('./scripts/lib/shell').sync([
'grep', '-e', '@fullcalendar/premium-common', dtsFile
])
stdout2 = stdout2.trim()
if (!stdout2) {
console.warn(`The premium package ${struct.name} does not have @fullcalendar/premium-common reference in .d.ts`)
anyFailures = true
}
}

console.log()
}

Expand Down
2 changes: 1 addition & 1 deletion packages-premium
12 changes: 12 additions & 0 deletions rollup.packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ module.exports = [
},
plugins: [
fixDtsCodeIn(),
ensurePremiumCommonAmbient(),
externalizeVDom(),
externalizeStylesheets(),
externalizeNonRelative(),
Expand Down Expand Up @@ -105,6 +106,17 @@ function externalizeVDom() {
}


function ensurePremiumCommonAmbient() {
return {
resolveId(id) {
if (id === '@fullcalendar/premium-common') {
return { id, external: true, moduleSideEffects: true }
}
}
}
}


function fixDtsCodeIn() {
return {
/*
Expand Down

0 comments on commit cbfad42

Please sign in to comment.