Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hypothesis/frontend-build

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hypothesis/frontend-build - npm Package Compare versions

Comparing version 1.2.0 to 2.0.0

4

lib/manifest.js

@@ -5,3 +5,3 @@ import { createHash } from 'crypto';

import glob from 'glob';
import { globSync } from 'glob';

@@ -35,3 +35,3 @@ /**

const manifestDir = path.dirname(manifestPath);
const files = glob.sync(pattern);
const files = globSync(pattern).sort();

@@ -38,0 +38,0 @@ /** @type {Record<string, string>} */

@@ -9,8 +9,4 @@ import { mkdir, writeFile } from 'fs/promises';

/**
* @typedef {import('tailwindcss/tailwind-config').TailwindConfig} TailwindConfig
* @typedef {import('tailwindcss').Config} TailwindConfig
*/
const defaultTailwindConfig = /** @type {TailwindConfig} */ ({
darkMode: false,
theme: {},
});

@@ -24,3 +20,3 @@ /**

* minus the file extension.
* @param {object} [options]
* @param {object} options
* @param {TailwindConfig} [options.tailwindConfig]

@@ -30,6 +26,3 @@ * Optional tailwind config object

*/
export async function buildCSS(
inputs,
{ tailwindConfig = defaultTailwindConfig } = {}
) {
export async function buildCSS(inputs, { tailwindConfig } = {}) {
const outDir = 'build/styles';

@@ -39,3 +32,3 @@ const minify = process.env.NODE_ENV === 'production';

/** @type {typeof import('tailwindcss')} */
/** @type {import('postcss').PluginCreator<TailwindConfig>} */
let tailwindcss;

@@ -61,3 +54,3 @@ try {

const optionalPlugins = [];
if (tailwindcss) {
if (tailwindcss && tailwindConfig) {
optionalPlugins.push(tailwindcss(tailwindConfig));

@@ -64,0 +57,0 @@ }

@@ -5,3 +5,3 @@ import { mkdirSync, writeFileSync } from 'fs';

import { program } from 'commander';
import glob from 'glob';
import { globSync } from 'glob';
import log from 'fancy-log';

@@ -48,3 +48,5 @@

bootstrapFile,
...glob.sync(testsPattern).filter(path => (grep ? path.match(grep) : true)),
...globSync(testsPattern)
.filter(path => (grep ? path.match(grep) : true))
.sort(),
];

@@ -51,0 +53,0 @@

{
"name": "@hypothesis/frontend-build",
"version": "1.2.0",
"version": "2.0.0",
"description": "Hypothesis frontend build scripts",

@@ -16,8 +16,8 @@ "type": "module",

"devDependencies": {
"@types/fancy-log": "^1.3.1",
"@types/glob": "^7.1.4",
"@types/fancy-log": "^2.0.0",
"@types/glob": "^8.0.0",
"@types/karma": "^6.3.1",
"@types/node": "^16.11.1",
"@types/node": "^18.0.0",
"@types/sass": "^1.16.1",
"@types/tailwindcss": "^2.2.4",
"@types/tailwindcss": "^3.0.2",
"autoprefixer": "^10.3.7",

@@ -28,11 +28,11 @@ "eslint": "^8.0.1",

"prettier": "^2.4.1",
"rollup": "^2.58.0",
"rollup": "^3.2.2",
"sass": "^1.43.2",
"tailwindcss": "^2.2.19",
"typescript": "^4.4.4"
"tailwindcss": "^3.0.11",
"typescript": "^5.0.2"
},
"dependencies": {
"commander": "^8.2.0",
"fancy-log": "^1.3.3",
"glob": "^7.2.0"
"commander": "^10.0.0",
"fancy-log": "^2.0.0",
"glob": "^10.0.0"
},

@@ -43,5 +43,5 @@ "peerDependencies": {

"postcss": "^8.3.9",
"rollup": "^2.58.0",
"rollup": "^3.2.2",
"sass": "^1.43.2",
"tailwindcss": "^2.2.19"
"tailwindcss": "^3.0.11"
},

@@ -48,0 +48,0 @@ "peerDependenciesMeta": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc