@nfrasser/simple-html-tokenizer
Version:
Simple HTML Tokenizer is a lightweight JavaScript library that can be used to tokenize the kind of HTML normally found in templates.
23 lines (20 loc) • 451 B
JavaScript
/* eslint-env node */
;
const fs = require('fs');
const path = require('path');
module.exports = {
name: 'symlink-self',
postBuild() {
// allows require('simple-html-tokenizer'); from unit test
try {
fs.symlinkSync(
this.project.root,
path.join(this.project.root, 'node_modules', 'simple-html-tokenizer')
);
} catch (e) {
if (e.code !== 'EEXIST') {
throw e;
}
}
}
};