fix: multi-repo local dev (file:../ deps, package exports, missing deps)

This commit is contained in:
Raven Scott
2026-05-21 20:14:54 -04:00
parent 76e3272ced
commit b63275c6cc
802 changed files with 94636 additions and 4 deletions
+18
View File
@@ -0,0 +1,18 @@
sudo: false
language: node_js
node_js:
- lts/*
jobs:
include:
- stage: npm release
node_js: node
script: echo "Deploying to npm ..."
deploy:
provider: npm
email:
secure: "Xxe2IEoT27tWFCCN3suwAtioeWSy5IhTEqqAIy6I6MbFAbqq4npU0lQ6mL5+kI5H6S2luFZwf1Eex1lXNfNAdGFI0sSnjOcKyw7HUsU/D7fNpQmtnnlSAJmz0z7qtWGzrNM/ihTFxAo5CYRJq2uemZ7tZTah0ePcXfiQxK3ZcnI2kS5yR+bQqZQVMy0yT0zHhTGoTsWaF3yAaZrlqLK5VNwIMahmRbz+BTtzNPgB9c9RA5tDla+GPevF3jaFw+Fwuv8M38idRERzJMJ7nYnBOC7XXssk25d+2ErsX61wqAxrXTaPmV9Mg6Njp5hLdl6PA2wMOSSHMfbqrRmjB2yvKzqvcB/Z34lhpd7/0PT2iWVA78aSGwLuTDIxcyeRNdYLMhVrMt/mPHTtzw2xckdg1NNkXEwyXowTLqMEB+8AnRt7Vuy/wOgw60l1AvYB3VJsmwkOR/bL3p8Q1weRj4hYJgB0W4YWeAh7d0NcvE4zwML849n5t37k1tHtcOY0ZVqea1ENJfja1IjFsNN4ki99y8wCm+ba5d+AJaqn0+ChluZfnQTqSqFHxfEEEy8v+TGXl+F8j6YT9iYfnyPHwYLjXx4GcFzlhSDiDF+Dxr155TU2XsSVB9zrL6Mv8TzOiazgosBFZO2Jz3EnWjEr21oFuKPHyb0FJ0nC5UMLHx3youU="
api_key: # 1ed6
secure: "zX7inYgOYTPpbMMU2BHPcGwbuPRadcFUfgANuvFk81ZWTgmoZkGSl/YUbacQmpg8QcuSvw6m5Gpv518hNKGHIlvKgf02PADJNoMoHNK+vpCzwhHxAEddAYO7Up18vNPs+erDlnDBa9LhnTbNeGh9bUvb1ylDDlvdsNCbDIU+dFsTxJCqG9jma0P5UJIbj6S+oMB+pVYZ64e82k7H3PE4PFctUPuahMcKhuO/rt9t/62IXzC7f1CIPwpm6bOfhkwtpO9UswyLkpscERIEWjLY5GgwIi/t4Zp3wV1J0EjczhA1+ZnUvCM9HelSAiWxqQrkCZSEFDI3Q9x9ZOgBCjwBt7BcNOb68UMASYFpVJZ4iVu+BmdhKPpSYqb+fIxxSFJuXOmND2wSNkxM/ETKkYRGu3rG9g52TMegtYYZXfD/oYLtozfdBVtCymjZ9Pt4Bw/IcpmcuS8gfWJqziXIlD+7hOaZHAwcTg7zpSQvnUN0pxcumztWCgSSUpIWffn2YdQRuM3ih7Za6Qeve7ZkuKdi6uzvuoLB8WXt6xy7X+KIG7Ng3LTvCWvIkBuOXNAV9sRyF5BNwm0QbVMAwYO5MeK2acUxOFxLFNQLEkl+2pKHWcDPAXFuX0sgRfCc336cCUAauN7B83IAScHGx50BjG4ldRPOPlXWQawRDcsBQm5h7W0="
on:
tags: true
node: node
+13
View File
@@ -0,0 +1,13 @@
Copyright (c) 2017, Emil Bay <[email protected]>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+44
View File
@@ -0,0 +1,44 @@
# `nanoassert`
[![Build Status](https://travis-ci.org/emilbayes/nanoassert.svg?branch=master)](https://travis-ci.org/emilbayes/nanoassert)
> Nanoscale assertion module
## Usage
```js
var assert = require('nanoassert')
assert(a !== b, `${a} !== ${b}`)
```
## API
### `assert(declaration, [message])`
Assert that `declaration` is truthy otherwise throw `AssertionError` with
optional `message`. In Javascript runtimes that use v8, you will get a nicer
stack trace with this error.
If you want friendlier messages you can use template strings to show the
assertion made like in the example above.
## Why
I like to write public facing code very defensively, but have reservations about
the size incurred by the `assert` module. I only use the top-level `assert`
method anyway.
## `nanoassert@^1.1.0`
Docs for the previous version, which is used by many modules on npm, can be
[found here](https://github.com/emilbayes/nanoassert/tree/v1.1.0)
## Install
```sh
npm install nanoassert
```
## License
[ISC](LICENSE)
+5
View File
@@ -0,0 +1,5 @@
var assert = require('.')
var a = 1
var b = 1
assert(a !== b, `${a} !== ${b}`)
+18
View File
@@ -0,0 +1,18 @@
module.exports = assert
class AssertionError extends Error {}
AssertionError.prototype.name = 'AssertionError'
/**
* Minimal assert function
* @param {any} t Value to check if falsy
* @param {string=} m Optional assertion error message
* @throws {AssertionError}
*/
function assert (t, m) {
if (!t) {
var err = new AssertionError(m)
if (Error.captureStackTrace) Error.captureStackTrace(err, assert)
throw err
}
}
+31
View File
@@ -0,0 +1,31 @@
{
"name": "nanoassert",
"version": "2.0.0",
"description": "Nanoscale assertion module",
"main": "index.js",
"dependencies": {},
"devDependencies": {
"tape": "^4.9.1"
},
"scripts": {
"test": "tape test.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/emilbayes/nanoassert.git"
},
"keywords": [
"assert",
"unassert",
"power-assert",
"tiny",
"nano",
"pico"
],
"author": "Emil Bay <[email protected]>",
"license": "ISC",
"bugs": {
"url": "https://github.com/emilbayes/nanoassert/issues"
},
"homepage": "https://github.com/emilbayes/nanoassert#readme"
}
+27
View File
@@ -0,0 +1,27 @@
var assert = require('.')
var test = require('tape')
test('test', function (t) {
try {
assert(true === true) // test that it doesn't throw
t.pass('does not throw on truthy')
} catch (e) {
t.fail()
}
t.throws(assert.bind(null, false), 'throws on falsy')
try {
assert(false)
} catch (e) {
t.equal(e.message, '', 'default message')
}
try {
assert(false, 'hello world')
} catch (e) {
t.equal(e.message, 'hello world', 'custom message')
}
t.end()
})