Skip to content

Commit 7db5b32

Browse files
authored
chore: add alias_prefix to parent namespaces
PR-URL: #8540 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent a0b1e88 commit 7db5b32

File tree

15 files changed

+368
-9
lines changed

15 files changed

+368
-9
lines changed

lib/node_modules/@stdlib/complex/float32/base/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,10 @@
5858
"ns",
5959
"float32",
6060
"base"
61-
]
61+
],
62+
"__stdlib__": {
63+
"scaffold": {
64+
"alias_prefix": "stdlib_base_complex64_"
65+
}
66+
}
6267
}

lib/node_modules/@stdlib/complex/float64/base/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,10 @@
5858
"ns",
5959
"float64",
6060
"base"
61-
]
61+
],
62+
"__stdlib__": {
63+
"scaffold": {
64+
"alias_prefix": "stdlib_base_complex128_"
65+
}
66+
}
6267
}

lib/node_modules/@stdlib/math/base/special/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,10 @@
5656
"lib",
5757
"mathematics",
5858
"math"
59-
]
59+
],
60+
"__stdlib__": {
61+
"scaffold": {
62+
"alias_prefix": "stdlib_base_"
63+
}
64+
}
6065
}

lib/node_modules/@stdlib/number/float32/base/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,10 @@
6262
"number",
6363
"32-bit",
6464
"ieee754"
65-
]
65+
],
66+
"__stdlib__": {
67+
"scaffold": {
68+
"alias_prefix": "stdlib_base_float32_"
69+
}
70+
}
6671
}

lib/node_modules/@stdlib/number/float64/base/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,10 @@
6161
"number",
6262
"64-bit",
6363
"ieee754"
64-
]
64+
],
65+
"__stdlib__": {
66+
"scaffold": {
67+
"alias_prefix": "stdlib_base_float64_"
68+
}
69+
}
6570
}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/**
2+
* @license Apache-2.0
3+
*
4+
* Copyright (c) 2025 The Stdlib Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
19+
'use strict';
20+
21+
/*
22+
* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name.
23+
*/
24+
25+
// MODULES //
26+
27+
var setReadOnly = require( '@stdlib/utils/define-read-only-property' );
28+
29+
30+
// MAIN //
31+
32+
/**
33+
* Top-level namespace.
34+
*
35+
* @namespace ns
36+
*/
37+
var ns = {};
38+
39+
/**
40+
* @name identity
41+
* @memberof ns
42+
* @readonly
43+
* @type {Function}
44+
* @see {@link module:@stdlib/number/int16/base/identity}
45+
*/
46+
setReadOnly( ns, 'identity', require( '@stdlib/number/int16/base/identity' ) );
47+
48+
49+
// EXPORTS //
50+
51+
module.exports = ns;
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"name": "@stdlib/number/int16/base",
3+
"version": "0.0.0",
4+
"description": "Base utilities for signed 16-bit integers.",
5+
"license": "Apache-2.0",
6+
"author": {
7+
"name": "The Stdlib Authors",
8+
"url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
9+
},
10+
"contributors": [
11+
{
12+
"name": "The Stdlib Authors",
13+
"url": "https://github.com/stdlib-js/stdlib/graphs/contributors"
14+
}
15+
],
16+
"main": "lib/index.js",
17+
"directories": {
18+
"lib": "./lib",
19+
"test": "./test"
20+
},
21+
"types": "./docs/types",
22+
"scripts": {},
23+
"homepage": "https://github.com/stdlib-js/stdlib",
24+
"repository": {
25+
"type": "git",
26+
"url": "git://github.com/stdlib-js/stdlib.git"
27+
},
28+
"bugs": {
29+
"url": "https://github.com/stdlib-js/stdlib/issues"
30+
},
31+
"dependencies": {},
32+
"devDependencies": {},
33+
"engines": {
34+
"node": ">=0.10.0",
35+
"npm": ">2.7.0"
36+
},
37+
"os": [
38+
"aix",
39+
"darwin",
40+
"freebsd",
41+
"linux",
42+
"macos",
43+
"openbsd",
44+
"sunos",
45+
"win32",
46+
"windows"
47+
],
48+
"keywords": [
49+
"stdlib",
50+
"stdtypes",
51+
"types",
52+
"base",
53+
"namespace",
54+
"ns",
55+
"int16",
56+
"signed",
57+
"integer",
58+
"int",
59+
"16-bit"
60+
],
61+
"__stdlib__": {
62+
"scaffold": {
63+
"alias_prefix": "stdlib_base_int16_"
64+
}
65+
}
66+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/**
2+
* @license Apache-2.0
3+
*
4+
* Copyright (c) 2025 The Stdlib Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
19+
'use strict';
20+
21+
// MODULES //
22+
23+
var tape = require( 'tape' );
24+
var objectKeys = require( '@stdlib/utils/keys' );
25+
var ns = require( './../lib' );
26+
27+
28+
// TESTS //
29+
30+
tape( 'main export is an object', function test( t ) {
31+
t.ok( true, __filename );
32+
t.strictEqual( typeof ns, 'object', 'main export is an object' );
33+
t.end();
34+
});
35+
36+
tape( 'the exported object contains key-value pairs', function test( t ) {
37+
var keys = objectKeys( ns );
38+
t.strictEqual( keys.length > 0, true, 'has keys' );
39+
t.end();
40+
});

lib/node_modules/@stdlib/number/int32/base/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,10 @@
5959
"integer",
6060
"int",
6161
"32-bit"
62-
]
62+
],
63+
"__stdlib__": {
64+
"scaffold": {
65+
"alias_prefix": "stdlib_base_int32_"
66+
}
67+
}
6368
}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/**
2+
* @license Apache-2.0
3+
*
4+
* Copyright (c) 2025 The Stdlib Authors.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
19+
'use strict';
20+
21+
/*
22+
* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name.
23+
*/
24+
25+
// MODULES //
26+
27+
var setReadOnly = require( '@stdlib/utils/define-read-only-property' );
28+
29+
30+
// MAIN //
31+
32+
/**
33+
* Top-level namespace.
34+
*
35+
* @namespace ns
36+
*/
37+
var ns = {};
38+
39+
/**
40+
* @name identity
41+
* @memberof ns
42+
* @readonly
43+
* @type {Function}
44+
* @see {@link module:@stdlib/number/int8/base/identity}
45+
*/
46+
setReadOnly( ns, 'identity', require( '@stdlib/number/int8/base/identity' ) );
47+
48+
49+
// EXPORTS //
50+
51+
module.exports = ns;

0 commit comments

Comments
 (0)